NX Open C++ Reference Guide
|
Represents a view. More...
Public Member Functions | |
NXOpen::Point3d | AbsoluteOrigin () |
Returns the view origin in absolute space. More... | |
std::vector < NXOpen::DisplayableObject * > | AskVisibleObjects () |
Returns an array of objects visible in a view. More... | |
void | ChangePerspective (bool changeViewToPerspective) |
Changes a view from an orthographic view to a perspective view, or from a perspective view to an orthographic view. More... | |
void | Concatenate (const NXOpen::Point3d &translation) |
Concatenates the given translation with the previous viewing transformation of the specified view. More... | |
void | Concatenate (double scale) |
Concatenates the given scale with the previous viewing transformation of the specified view. More... | |
void | Concatenate (const NXOpen::Point3d &translation, double scale) |
Concatenates the given translation and scale with the previous viewing transformation of the specified view. More... | |
void | Concatenate (const NXOpen::Point3d ¢erOfRotation, const NXOpen::Vector3d &rotationAxis, double angle) |
Concatenates the given rotation with the previous viewing transformation of the specified view. More... | |
void | Concatenate (const NXOpen::Point3d &translation, const NXOpen::Point3d ¢erOfRotation, const NXOpen::Vector3d &rotationAxis, double angle) |
Concatenates the given translation and rotation with the previous viewing transformation of the specified view. More... | |
void | Concatenate (double scale, const NXOpen::Point3d ¢erOfRotation, const NXOpen::Vector3d &rotationAxis, double angle) |
Concatenates the given scale and rotation with the previous viewing transformation of the specified view. More... | |
void | Concatenate (const NXOpen::Point3d &translation, double scale, const NXOpen::Point3d ¢erOfRotation, const NXOpen::Vector3d &rotationAxis, double angle) |
Concatenates the given translation, scale and rotation with the previous viewing transformation of the specified view. More... | |
NXOpen::ViewDependentDisplayManager * | DependentDisplay () |
Returns an object to perform all view dependent display operations Created in NX3.0.0. More... | |
NXString | DisclosurePurpose () |
Returns the Disclosure Purpose. More... | |
void | Expand () |
Expands the specified view to fill as much of the layout which contains the view as possible, without changing the aspect ratio of the view. More... | |
void | Fit () |
Adjusts the bounds of a given view so that it fully encompasses the extents of the model geometry. More... | |
void | FitAfterShowOrHide (NXOpen::View::ShowOrHideType type) |
Adjusts the bounds of a given view conditionally so that it fully encompasses the extents of the model geometry. More... | |
void | FitToObjects (const std::vector< NXOpen::IFitTo * > &objects) |
Adjusts the bounds of a given view so that it fully encompasses the extents of the given objects. More... | |
NXOpen::Vector3d | GetAxis (NXOpen::XYZAxis xYZAxis) |
Returns one of the view axes. More... | |
double | GetExpandedScale () |
Returns the view scale, including any expansion factor. More... | |
bool | HasPreview () |
Returns whether or not the given view has a preview. More... | |
bool | LockRotations () |
Returns the "Lock Rotations" toggle state of a view. More... | |
void | MakeWork () |
Makes the given view the work view. More... | |
NXOpen::Matrix3x3 | Matrix () |
Returns the view matrix. More... | |
void | Orient (const NXOpen::Matrix3x3 &matrix) |
Changes the view orientation relative to the specified absolute coordinate system. More... | |
void | Orient (NXOpen::View::Canned viewName, NXOpen::View::ScaleAdjustment viewScale) |
Changes the view orientation to a specified canned view. More... | |
void | Orient (const NXString &viewName, NXOpen::View::ScaleAdjustment viewScale) |
Changes the view orientation to a specified view. More... | |
void | Orient (const char *viewName, NXOpen::View::ScaleAdjustment viewScale) |
Changes the view orientation to a specified view. More... | |
NXOpen::Point3d | Origin () |
Returns the view origin. More... | |
void | Regenerate () |
Regenerates the display of given view. More... | |
NXOpen::View::RenderingStyleType | RenderingStyle () |
Returns the rendering style of the view. More... | |
bool | Restore () |
Restores a view to its last remembered rotation, scale and translation. More... | |
void | Rotate (const NXOpen::Matrix3x3 &matrix) |
Rotates the view by concatenating the given matrix to the existing rotation matrix of the view. More... | |
void | Rotate (const NXOpen::Point3d &origin, const NXOpen::Vector3d &vector, double angle) |
Rotates the specified view using the specified origin of rotation and about the specified axis. More... | |
double | Scale () |
Returns the view scale. More... | |
void | SetDisclosurePurpose (const NXString &disclosurePurpose) |
Sets the Disclosure Purpose. More... | |
void | SetDisclosurePurpose (const char *disclosurePurpose) |
Sets the Disclosure Purpose. More... | |
void | SetLockRotations (bool newToggleState) |
Sets the "Lock Rotations" toggle state of a view. More... | |
void | SetOrigin (const NXOpen::Point3d &origin) |
Moves the given position to the center of the view. More... | |
void | SetRenderingStyle (NXOpen::View::RenderingStyleType renderingStyle) |
Sets the rendering style of the view. More... | |
void | SetRotationTranslationScale (const NXOpen::Matrix3x3 &rotMatrix, const NXOpen::Point3d &translation, double scale) |
Sets the rotation, translation and scale of the specified view. More... | |
void | SetScale (double scale) |
Sets the scale of the specified view to the desired scale factor. More... | |
void | SetSyncViews (bool newToggleState) |
Sets the "Synchronized Views" toggle state of a view. More... | |
void | SetTriadVisibility (bool triadVisibility) |
Sets the visibility of the view triad in the view. More... | |
void | SetWcsVisibility (bool isVisible) |
Sets the visibility of the WCS in the view. More... | |
void | SnapToClosestCannedOrientation () |
Changes the orientation of the given view to the orientation of the canned view whose orientation is the closest to that of the given view. More... | |
void | SnapToVariantCannedOrientation () |
Similar to NXOpen::View::SnapToClosestCannedOrientation except it changes the orientation of the given view to the orientation of some canned view "variant" based on I-deas's 'snapview' logic whose orientation is the closest to one of the six orthographic and eight flavors of trimetric views. More... | |
bool | SyncViews () |
Returns the "Synchronized Views" toggle state of a view. More... | |
bool | TriadVisibility () |
Returns the visibility of the view triad in the view. More... | |
void | UpdateCustomSymbols () |
Updates custom symbol in a drawing member view or drawing sheet Created in NX8.0.1. More... | |
void | UpdateDisplay () |
Updates the display of given view, as needed. More... | |
NXOpen::Preferences::ViewVisualizationSpecialEffects * | VisualizationSpecialEffectsPreferences () |
Returns an object to perform all visualization Special Effects related preferences settings Created in NX3.0.0. More... | |
NXOpen::Preferences::ViewVisualizationVisual * | VisualizationVisualPreferences () |
Returns an object to perform all visualization related preferences settings Created in NX3.0.0. More... | |
bool | WcsVisibility () |
Returns the visibility of the WCS in the view. More... | |
void | Zoom (NXOpen::View::ScaleFactor scaleFactor) |
Scales the specified view to a desired relative scale. More... | |
void | ZoomAboutPoint (double relativeScale, const NXOpen::Point3d &scaleAboutPoint, const NXOpen::Point3d &viewCenter) |
Scales the specified view such that the given scale_about_point does not move. More... | |
void | ZoomByRectangle (const NXOpen::Point3d &corner1, const NXOpen::Point3d &corner2) |
Scales the specified view such that the specified rectangle is as large as possible while being fully contained within the viewport. More... | |
Public Member Functions inherited from NXOpen::NXObject | |
NXOpen::AttributeIterator * | CreateAttributeIterator () |
Create an attribute iterator. More... | |
void | DeleteAllAttributesByType (NXOpen::NXObject::AttributeType type) |
Deletes all attributes of a specific type. More... | |
void | DeleteAllAttributesByType (NXOpen::NXObject::AttributeType type, NXOpen::Update::Option option) |
Deletes all attributes of a specific type with the option to update or not. More... | |
void | DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const NXString &title) |
Deletes an attribute by type and title. More... | |
void | DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title) |
Deletes an attribute by type and title. More... | |
void | DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const NXString &title, NXOpen::Update::Option option) |
Deletes an attribute by type and title with the option to update or not. More... | |
void | DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title, NXOpen::Update::Option option) |
Deletes an attribute by type and title with the option to update or not. More... | |
void | DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const NXString &title, bool deleteEntireArray, NXOpen::Update::Option option) |
Deletes the first attribute encountered with the given Type, Title. More... | |
void | DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const char *title, bool deleteEntireArray, NXOpen::Update::Option option) |
Deletes the first attribute encountered with the given Type, Title. More... | |
void | DeleteUserAttributes (NXOpen::AttributeIterator *iterator, NXOpen::Update::Option option) |
Deletes the attributes on the object, if any, that satisfy the given iterator Created in NX8.0.0. More... | |
void | DeleteUserAttributes (NXOpen::NXObject::AttributeType type, NXOpen::Update::Option option) |
Deletes the attributes encountered with the given Type with option to update or not. More... | |
virtual NXOpen::INXObject * | FindObject (const NXString &journalIdentifier) |
Finds the NXOpen::NXObject with the given identifier as recorded in a journal. More... | |
virtual NXOpen::INXObject * | FindObject (const char *journalIdentifier) |
Finds the NXOpen::NXObject with the given identifier as recorded in a journal. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetAttributeTitlesByType (NXOpen::NXObject::AttributeType type) |
Gets all the attribute titles of a specific type. More... | |
bool | GetBooleanUserAttribute (const NXString &title, int index) |
Gets a boolean attribute by Title and array Index. More... | |
bool | GetBooleanUserAttribute (const char *title, int index) |
Gets a boolean attribute by Title and array Index. More... | |
NXOpen::NXObject::ComputationalTime | GetComputationalTimeUserAttribute (const NXString &title, int index) |
Gets a time attribute by Title and array Index. More... | |
NXOpen::NXObject::ComputationalTime | GetComputationalTimeUserAttribute (const char *title, int index) |
Gets a time attribute by Title and array Index. More... | |
int | GetIntegerAttribute (const NXString &title) |
Gets an integer attribute by title. More... | |
int | GetIntegerAttribute (const char *title) |
Gets an integer attribute by title. More... | |
int | GetIntegerUserAttribute (const NXString &title, int index) |
Gets an integer attribute by Title and array Index. More... | |
int | GetIntegerUserAttribute (const char *title, int index) |
Gets an integer attribute by Title and array Index. More... | |
bool | GetNextUserAttribute (NXOpen::AttributeIterator *iterator, NXOpen::NXObject::AttributeInformation *info) |
Gets the next attribute encountered on the object, if any, that satisfies the given iterator. More... | |
NXString | GetPdmReferenceAttributeValue (const NXString &attributeTitle) |
Gets the value of PDM Reference attribute for given object. More... | |
NXString | GetPdmReferenceAttributeValue (const char *attributeTitle) |
Gets the value of PDM Reference attribute for given object. More... | |
double | GetRealAttribute (const NXString &title) |
Gets a real attribute by title. More... | |
double | GetRealAttribute (const char *title) |
Gets a real attribute by title. More... | |
double | GetRealUserAttribute (const NXString &title, int index) |
Gets a real attribute by Title and array Index. More... | |
double | GetRealUserAttribute (const char *title, int index) |
Gets a real attribute by Title and array Index. More... | |
NXString | GetReferenceAttribute (const NXString &title) |
Gets the reference string (not the calculated value) of a string attribute that uses a reference string. More... | |
NXString | GetReferenceAttribute (const char *title) |
Gets the reference string (not the calculated value) of a string attribute that uses a reference string. More... | |
NXString | GetStringAttribute (const NXString &title) |
Gets a string attribute value by title. More... | |
NXString | GetStringAttribute (const char *title) |
Gets a string attribute value by title. More... | |
NXString | GetStringUserAttribute (const NXString &title, int index) |
Gets a string attribute by Title and array Index. More... | |
NXString | GetStringUserAttribute (const char *title, int index) |
Gets a string attribute by Title and array Index. More... | |
NXString | GetTimeAttribute (NXOpen::NXObject::DateAndTimeFormat format, const NXString &title) |
Gets a time attribute by title. More... | |
NXString | GetTimeAttribute (NXOpen::NXObject::DateAndTimeFormat format, const char *title) |
Gets a time attribute by title. More... | |
NXString | GetTimeUserAttribute (const NXString &title, int index) |
Gets a time attribute by Title and array Index. More... | |
NXString | GetTimeUserAttribute (const char *title, int index) |
Gets a time attribute by Title and array Index. More... | |
NXOpen::NXObject::AttributeInformation | GetUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index) |
Gets the first attribute encountered on the object, if any, with a given Title, Type and array Index. More... | |
NXOpen::NXObject::AttributeInformation | GetUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index) |
Gets the first attribute encountered on the object, if any, with a given Title, Type and array Index. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetUserAttribute (const NXString &title, bool includeUnset, bool addStringValues, NXOpen::NXObject::AttributeType type) |
Gets the first attribute (or attribute array) encountered on the object, if any, with a given Title and Type. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetUserAttribute (const char *title, bool includeUnset, bool addStringValues, NXOpen::NXObject::AttributeType type) |
Gets the first attribute (or attribute array) encountered on the object, if any, with a given Title and Type. More... | |
NXString | GetUserAttributeAsString (const NXString &title, NXOpen::NXObject::AttributeType type, int index) |
Gets the first attribute encountered on the object, if any, with a given title, type and array index. More... | |
NXString | GetUserAttributeAsString (const char *title, NXOpen::NXObject::AttributeType type, int index) |
Gets the first attribute encountered on the object, if any, with a given title, type and array index. More... | |
int | GetUserAttributeCount (NXOpen::AttributeIterator *iterator) |
Gets the count of set attributes on the object, if any, that satisfy the given iterator. More... | |
int | GetUserAttributeCount (NXOpen::AttributeIterator *iterator, bool countArrayAsOneAttribute) |
Gets the count of set attributes on the object, if any, that satisfy the given iterator. More... | |
int | GetUserAttributeCount (NXOpen::NXObject::AttributeType type) |
Gets the count of set attributes on the object, if any, of the given type. More... | |
int | GetUserAttributeCount (NXOpen::NXObject::AttributeType type, bool includeUnset, bool countArrayAsOneAttribute) |
Gets the count of attributes on the object, if any, of the given type. More... | |
bool | GetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type) |
Determine the lock of the given attribute. More... | |
bool | GetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type) |
Determine the lock of the given attribute. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetUserAttributes (NXOpen::AttributeIterator *iterator) |
Gets all the attributes that have been set on the given object, if any, that satisfy the given iterator. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetUserAttributes () |
Gets all the attributes that have been set on the given object. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetUserAttributes (bool includeUnset) |
Gets all the attributes of the given object. More... | |
std::vector < NXOpen::NXObject::AttributeInformation > | GetUserAttributes (bool includeUnset, bool addStringValues) |
Gets all the attributes of the given object. More... | |
std::vector< NXString > | GetUserAttributesAsStrings () |
Gets all the attributes that have been set on the given object. More... | |
int | GetUserAttributeSize (const NXString &title, NXOpen::NXObject::AttributeType type) |
Gets the size of the first attribute encountered on the object, if any, with a given Title and Type. More... | |
int | GetUserAttributeSize (const char *title, NXOpen::NXObject::AttributeType type) |
Gets the size of the first attribute encountered on the object, if any, with a given Title and Type. More... | |
std::vector< NXOpen::NXObject * > | GetUserAttributeSourceObjects () |
Returns an array of objects from which this object presents attributes. More... | |
bool | HasUserAttribute (NXOpen::AttributeIterator *iterator) |
Determines if an attribute exists on the object, that satisfies the given iterator. More... | |
bool | HasUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index) |
Determines if an attribute with the given Title, Type and array Index is present on the object Unset attributes will not be detected by this function, as its purpose is to test for the actual presence of the attribute on the object. More... | |
bool | HasUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index) |
Determines if an attribute with the given Title, Type and array Index is present on the object Unset attributes will not be detected by this function, as its purpose is to test for the actual presence of the attribute on the object. More... | |
virtual bool | IsOccurrence () |
Returns whether this object is an occurrence or not. More... | |
virtual NXString | JournalIdentifier () |
Returns the identifier that would be recorded in a journal for this object. More... | |
virtual NXString | Name () |
Returns the custom name of the object. More... | |
virtual NXOpen::Assemblies::Component * | OwningComponent () |
Returns the owning component, if this object is an occurrence. More... | |
virtual NXOpen::BasePart * | OwningPart () |
Returns the owning part of this object Created in NX3.0.0. More... | |
virtual void | Print () |
Prints a representation of this object to the system log file. More... | |
virtual NXOpen::INXObject * | Prototype () |
Returns the prototype of this object if it is an occurrence. More... | |
void | SetAttribute (const NXString &title, int value) |
Creates or modifies an integer attribute. More... | |
void | SetAttribute (const char *title, int value) |
Creates or modifies an integer attribute. More... | |
void | SetAttribute (const NXString &title, int value, NXOpen::Update::Option option) |
Creates or modifies an integer attribute with the option to update or not. More... | |
void | SetAttribute (const char *title, int value, NXOpen::Update::Option option) |
Creates or modifies an integer attribute with the option to update or not. More... | |
void | SetAttribute (const NXString &title, double value) |
Creates or modifies a real attribute. More... | |
void | SetAttribute (const char *title, double value) |
Creates or modifies a real attribute. More... | |
void | SetAttribute (const NXString &title, double value, NXOpen::Update::Option option) |
Creates or modifies a real attribute with the option to update or not. More... | |
void | SetAttribute (const char *title, double value, NXOpen::Update::Option option) |
Creates or modifies a real attribute with the option to update or not. More... | |
void | SetAttribute (const NXString &title, const NXString &value) |
Creates or modifies a string attribute. More... | |
void | SetAttribute (const char *title, const char *value) |
Creates or modifies a string attribute. More... | |
void | SetAttribute (const NXString &title, const NXString &value, NXOpen::Update::Option option) |
Creates or modifies a string attribute with the option to update or not. More... | |
void | SetAttribute (const char *title, const char *value, NXOpen::Update::Option option) |
Creates or modifies a string attribute with the option to update or not. More... | |
void | SetAttribute (const NXString &title) |
Creates or modifies a null attribute which is an attribute with a title and no value. More... | |
void | SetAttribute (const char *title) |
Creates or modifies a null attribute which is an attribute with a title and no value. More... | |
void | SetAttribute (const NXString &title, NXOpen::Update::Option option) |
Creates or modifies a null attribute with the option to update or not. More... | |
void | SetAttribute (const char *title, NXOpen::Update::Option option) |
Creates or modifies a null attribute with the option to update or not. More... | |
void | SetBooleanUserAttribute (const NXString &title, int index, bool value, NXOpen::Update::Option option) |
Creates or modifies a boolean attribute with the option to update or not. More... | |
void | SetBooleanUserAttribute (const char *title, int index, bool value, NXOpen::Update::Option option) |
Creates or modifies a boolean attribute with the option to update or not. More... | |
virtual void | SetName (const NXString &name) |
Sets the custom name of the object. More... | |
virtual void | SetName (const char *name) |
Sets the custom name of the object. More... | |
void | SetPdmReferenceAttribute (const NXString &attributeTitle, const NXString &attributeValue) |
Sets the value of PDM Reference attribute on the object. More... | |
void | SetPdmReferenceAttribute (const char *attributeTitle, const char *attributeValue) |
Sets the value of PDM Reference attribute on the object. More... | |
void | SetReferenceAttribute (const NXString &title, const NXString &value) |
Creates or modifies a string attribute which uses a reference string. More... | |
void | SetReferenceAttribute (const char *title, const char *value) |
Creates or modifies a string attribute which uses a reference string. More... | |
void | SetReferenceAttribute (const NXString &title, const NXString &value, NXOpen::Update::Option option) |
Creates or modifies a string attribute which uses a reference string, with the option to update or not. More... | |
void | SetReferenceAttribute (const char *title, const char *value, NXOpen::Update::Option option) |
Creates or modifies a string attribute which uses a reference string, with the option to update or not. More... | |
void | SetTimeAttribute (const NXString &title, const NXString &value) |
Creates or modifies a time attribute. More... | |
void | SetTimeAttribute (const char *title, const char *value) |
Creates or modifies a time attribute. More... | |
void | SetTimeAttribute (const NXString &title, const NXString &value, NXOpen::Update::Option option) |
Creates or modifies a time attribute with the option to update or not. More... | |
void | SetTimeAttribute (const char *title, const char *value, NXOpen::Update::Option option) |
Creates or modifies a time attribute with the option to update or not. More... | |
void | SetTimeUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option) |
Creates or modifies a time attribute with the option to update or not. More... | |
void | SetTimeUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option) |
Creates or modifies a time attribute with the option to update or not. More... | |
void | SetTimeUserAttribute (const NXString &title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option) |
Creates or modifies a time attribute with the option to update or not. More... | |
void | SetTimeUserAttribute (const char *title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option) |
Creates or modifies a time attribute with the option to update or not. More... | |
void | SetUserAttribute (const NXOpen::NXObject::AttributeInformation &info, NXOpen::Update::Option option) |
Creates or modifies an attribute with the option to update or not. More... | |
void | SetUserAttribute (const NXString &title, int index, int value, NXOpen::Update::Option option) |
Creates or modifies an integer attribute with the option to update or not. More... | |
void | SetUserAttribute (const char *title, int index, int value, NXOpen::Update::Option option) |
Creates or modifies an integer attribute with the option to update or not. More... | |
void | SetUserAttribute (const NXString &title, int index, double value, NXOpen::Update::Option option) |
Creates or modifies a real attribute with the option to update or not. More... | |
void | SetUserAttribute (const char *title, int index, double value, NXOpen::Update::Option option) |
Creates or modifies a real attribute with the option to update or not. More... | |
void | SetUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option) |
Creates or modifies a string attribute with the option to update or not. More... | |
void | SetUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option) |
Creates or modifies a string attribute with the option to update or not. More... | |
void | SetUserAttribute (const NXString &title, int index, NXOpen::Update::Option option) |
Creates or modifies a null attribute with the option to update or not. More... | |
void | SetUserAttribute (const char *title, int index, NXOpen::Update::Option option) |
Creates or modifies a null attribute with the option to update or not. More... | |
void | SetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type, bool lock) |
Lock or unlock the given attribute. More... | |
void | SetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type, bool lock) |
Lock or unlock the given attribute. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents a view.
View can be obtained either from NXOpen::ViewCollection or from NXOpen::ModelingViewCollection .
This class is not created directly by the user.
Created in NX3.0.0.
enum NXOpen::View::Canned |
Describes the rendering style for geometry displayed in the view.
Describes simple, predefined adjustments that may be applied to a view's scale while another operation is performed, in conjunction, on the view.
For more details, refer to those interfaces that use this enum as a parameter.
Enumerator | |
---|---|
ScaleAdjustmentFit |
fit |
ScaleAdjustmentCurrent |
current |
ScaleAdjustmentSaved |
saved |
NXOpen::Point3d NXOpen::View::AbsoluteOrigin | ( | ) |
Returns the view origin in absolute space.
Created in NX8.5.0.
License requirements : None
std::vector<NXOpen::DisplayableObject *> NXOpen::View::AskVisibleObjects | ( | ) |
Returns an array of objects visible in a view.
Objects which are hidden, on invisible layers, completely outside the X, Y clip plane bounds, or otherwise considered invisible are not included in the returned array.
Note there are some exceptions. Objects which are not within the front and back clip planes may be returned as visible. When run in batch mode, solids which are occluded by other solids in a hidden line view may be returned as visible.
void NXOpen::View::ChangePerspective | ( | bool | changeViewToPerspective | ) |
Changes a view from an orthographic view to a perspective view, or from a perspective view to an orthographic view.
A request to change an already perspective view to a perspective view is ignored, as is a request to change an already orthographic view to an orthographic view. If the view is a drawing view or a member view on a drawing, the request is ignored.
Created in NX11.0.0.
License requirements : None
changeViewToPerspective | changeviewtoperspective |
void NXOpen::View::Concatenate | ( | const NXOpen::Point3d & | translation | ) |
Concatenates the given translation with the previous viewing transformation of the specified view.
The translation is defined in view space.
In batch mode, the translation of the view is modified, but no display occurs
Created in NX4.0.0.
License requirements : None
translation | Point in view space to put at the center of the view |
void NXOpen::View::Concatenate | ( | double | scale | ) |
Concatenates the given scale with the previous viewing transformation of the specified view.
The scale is applied to the view using the current view origin.
In batch mode, the scale of the view is modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
scale | Relative scale factor |
void NXOpen::View::Concatenate | ( | const NXOpen::Point3d & | translation, |
double | scale | ||
) |
Concatenates the given translation and scale with the previous viewing transformation of the specified view.
The translation is defined in view space, and conceptually occurs first. Then, the scale is applied to the view using the new view origin. Although this is logically a two step process, only the final result appears in the graphics window.
In batch mode, the translation and scale of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
translation | Point in view space to put at the center of the view |
scale | Relative scale factor |
void NXOpen::View::Concatenate | ( | const NXOpen::Point3d & | centerOfRotation, |
const NXOpen::Vector3d & | rotationAxis, | ||
double | angle | ||
) |
Concatenates the given rotation with the previous viewing transformation of the specified view.
First, if a center of rotation is given, a translation occurs to move the center of the view to the center of rotation. Then, the rotation occurs about the center of rotation. Finally, if a center of rotation is being used, the view is translated back to the origin it had upon entering the function. Although this is logically a three step process, only the final result appears in the graphics window.
In batch mode, the rotation of the view is modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
centerOfRotation | If not NULL, this specifies a point in view space about which the view is to be rotated |
rotationAxis | The axis to rotate about |
angle | Rotation angle in radians |
void NXOpen::View::Concatenate | ( | const NXOpen::Point3d & | translation, |
const NXOpen::Point3d & | centerOfRotation, | ||
const NXOpen::Vector3d & | rotationAxis, | ||
double | angle | ||
) |
Concatenates the given translation and rotation with the previous viewing transformation of the specified view.
The translation is defined in view space, and conceptually occurs first. Then, if a center of rotation is given, a translation occurs to move the center of the view to the center of rotation. Third, the rotation occurs about the center of rotation. Finally, if a center of rotation is being used, the view is translated back to the origin it had after the translation. Although this is logically a four step process, only the final result appears in the graphics window.
In batch mode, the translation and rotation of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
translation | Point in view space to put at the center of the view |
centerOfRotation | If not NULL, this specifies a point in view space about which the view is to be rotated |
rotationAxis | The axis to rotate about |
angle | Rotation angle in radians |
void NXOpen::View::Concatenate | ( | double | scale, |
const NXOpen::Point3d & | centerOfRotation, | ||
const NXOpen::Vector3d & | rotationAxis, | ||
double | angle | ||
) |
Concatenates the given scale and rotation with the previous viewing transformation of the specified view.
First, the scale is applied to the view using the current view origin. Then, if a center of rotation is given, a translation occurs to move the center of the view to the center of rotation. Third, the rotation occurs about the center of rotation. Finally, if a center of rotation is being used, the view is translated back to the origin it had upon entering the function. Although this is logically a four step process, only the final result appears in the graphics window.
In batch mode, the scale and rotation of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
scale | Relative scale factor |
centerOfRotation | If not NULL, this specifies a point in view space about which the view is to be rotated |
rotationAxis | The axis to rotate about |
angle | Rotation angle in radians |
void NXOpen::View::Concatenate | ( | const NXOpen::Point3d & | translation, |
double | scale, | ||
const NXOpen::Point3d & | centerOfRotation, | ||
const NXOpen::Vector3d & | rotationAxis, | ||
double | angle | ||
) |
Concatenates the given translation, scale and rotation with the previous viewing transformation of the specified view.
The translation is defined in view space, and conceptually occurs first. Then the scale is applied to the view using the newly defined center. Third, a translation occurs to move the center of the view to the center of rotation (if any). Fourth, the rotation occurs about the center of rotation. Finally, if a center of rotation is being used, the view is translated back to its origin as specified by the first argument. Although this is logically a five step process, only the final result appears in the graphics window.
In batch mode, the translation, scale and rotation of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
translation | Point in view space to put at the center of the view |
scale | Relative scale factor |
centerOfRotation | If not NULL, this specifies a point in view space about which the view is to be rotated |
rotationAxis | The axis to rotate about |
angle | Rotation angle in radians |
NXOpen::ViewDependentDisplayManager* NXOpen::View::DependentDisplay | ( | ) |
Returns an object to perform all view dependent display operations
Created in NX3.0.0.
NXString NXOpen::View::DisclosurePurpose | ( | ) |
Returns the Disclosure Purpose.
Created in NX11.0.1.
License requirements : None
void NXOpen::View::Expand | ( | ) |
Expands the specified view to fill as much of the layout which contains the view as possible, without changing the aspect ratio of the view.
Other views in the layout are no longer displayed. The view becomes the work view. A view that is not displayed cannot be expanded.
In batch mode, the data for the view is changed to reflect that the view is expanded, but no display occurs.
Created in NX4.0.0.
License requirements : None
void NXOpen::View::Fit | ( | ) |
Adjusts the bounds of a given view so that it fully encompasses the extents of the model geometry.
If the view is displayed, the changes will appear in the display of that view, and, if enabled, the change in the bounds of the view is animated.
In batch mode, the data for the bounds of the view are changed to the adjusted bounds, but no display occurs.
Created in NX3.0.0.
License requirements : None
void NXOpen::View::FitAfterShowOrHide | ( | NXOpen::View::ShowOrHideType | type | ) |
Adjusts the bounds of a given view conditionally so that it fully encompasses the extents of the model geometry.
This method is intended to be used only immediately after a show or hide operation has been done. The fit operation is performed only if the "Fit on Show or Hide" option is enabled by NXOpen::Preferences::SessionVisualizationScreen::DoFitOnHideOrShow , and if the work view is not a drawing view. If only a hide operation has been done and a fit would cause the view scale to decrease, the fit will not be done. If the view is displayed, the changes will appear in the display of that view, and, if enabled, the change in the bounds of the view is animated.
In batch mode, the data for the bounds of the view may be changed to the adjusted bounds, if the "Fit on Show or Hide" option is enabled and the other conditions are met, but no display occurs.
Created in NX8.5.0.
License requirements : None
type | Whether a Show or Hide or both has been done |
void NXOpen::View::FitToObjects | ( | const std::vector< NXOpen::IFitTo * > & | objects | ) |
Adjusts the bounds of a given view so that it fully encompasses the extents of the given objects.
If the view is displayed, the changes will appear in the display of that view and, if enabled, the change in the bounds of the view is animated.
In batch mode, the data for the bounds of the view are changed to the adjusted bounds, but no display occurs.
Created in NX4.0.0.
License requirements : None
objects | The objects whose display is to be included in the displayed bounds of the view |
NXOpen::Vector3d NXOpen::View::GetAxis | ( | NXOpen::XYZAxis | xYZAxis | ) |
Returns one of the view axes.
These are the components of the 3x3 matrix which is the rotation of absolute space which results in view space.
xYZAxis | Whether to return the X, Y or Z axis |
double NXOpen::View::GetExpandedScale | ( | ) |
Returns the view scale, including any expansion factor.
This is intended for use with an expanded view where the process of expanding it may apply a multiplier to the view's inherent scale value. If the view is not expanded, the result should be the same as that obtained with NXOpen::View::Scale .
bool NXOpen::View::HasPreview | ( | ) |
Returns whether or not the given view has a preview.
bool NXOpen::View::LockRotations | ( | ) |
Returns the "Lock Rotations" toggle state of a view.
If there is no error, the current toggle state is returned
Created in NX9.0.0.
License requirements : None
void NXOpen::View::MakeWork | ( | ) |
Makes the given view the work view.
The view must be currently displayed. As there must be exactly one work view at any time, the previous work view is no longer the work view.
In batch mode, the given view becomes the work view internally, but no display occurs.
Created in NX4.0.0.
License requirements : None
NXOpen::Matrix3x3 NXOpen::View::Matrix | ( | ) |
Returns the view matrix.
This 3x3 orthonormal matrix specifies the rotation from model space to untranslated view space.
Created in NX3.0.0.
License requirements : None
void NXOpen::View::Orient | ( | const NXOpen::Matrix3x3 & | matrix | ) |
Changes the view orientation relative to the specified absolute coordinate system.
If enabled, the change in orientation of the view is animated. A view that is not displayed cannot be oriented.
In batch mode, the orientation of given view is changed internally, but no display occurs.
Created in NX3.0.0.
License requirements : None
matrix | Orientation relative to the absolute coordinate system. Must be orthonormal. |
void NXOpen::View::Orient | ( | NXOpen::View::Canned | viewName, |
NXOpen::View::ScaleAdjustment | viewScale | ||
) |
Changes the view orientation to a specified canned view.
If enabled, the change in orientation of the view is animated. A view that is not displayed cannot be oriented.
In batch mode, the orientation of given view is changed internally, but no display occurs.
Created in NX3.0.0.
License requirements : None
viewName | Canned view name |
viewScale | Desired view scale |
void NXOpen::View::Orient | ( | const NXString & | viewName, |
NXOpen::View::ScaleAdjustment | viewScale | ||
) |
Changes the view orientation to a specified view.
If enabled, the change in orientation of the view is animated. A view that is not displayed cannot be oriented.
In batch mode, the orientation of given view is changed internally, but no display occurs.
Created in NX3.0.0.
License requirements : None
viewName | Custom view name |
viewScale | Desired view scale |
void NXOpen::View::Orient | ( | const char * | viewName, |
NXOpen::View::ScaleAdjustment | viewScale | ||
) |
Changes the view orientation to a specified view.
If enabled, the change in orientation of the view is animated. A view that is not displayed cannot be oriented.
In batch mode, the orientation of given view is changed internally, but no display occurs.
Created in NX3.0.0.
License requirements : None
viewName | Custom view name |
viewScale | Desired view scale |
NXOpen::Point3d NXOpen::View::Origin | ( | ) |
Returns the view origin.
This is the negation of the position in "untranslated view space", which is the coordinate space obtained by multiplying positions in absolute space by the matrix from NXOpen::View::Matrix . Note that the origin in this method is not in the same space as the origin passed to NXOpen::View::Origin and NXOpen::View::SetOrigin , where the input origin is in absolute space.
The position given to this property is the same as the translation used in NXOpen::View::Concatenate and in the other similar concatenate methods.
If you want to get the view origin in absolute space, use NXOpen::View::AbsoluteOrigin
Created in NX3.0.0.
License requirements : None
void NXOpen::View::Regenerate | ( | ) |
Regenerates the display of given view.
The current scale of the view is used to determine the tessalation of curves, facets and software line fonts. The view must be already displayed.
In batch mode, internal state information is reset as if the display were regenerated, but no display occurs.
Created in NX4.0.0.
License requirements : None
NXOpen::View::RenderingStyleType NXOpen::View::RenderingStyle | ( | ) |
Returns the rendering style of the view.
Created in NX4.0.0.
License requirements : None
bool NXOpen::View::Restore | ( | ) |
Restores a view to its last remembered rotation, scale and translation.
A view that is not displayed cannot be restored. If enabled, the restoration of the view is animated.
In batch mode, internal state information is restored, but no display occurs.
Created in NX3.0.0.
License requirements : None
void NXOpen::View::Rotate | ( | const NXOpen::Matrix3x3 & | matrix | ) |
Rotates the view by concatenating the given matrix to the existing rotation matrix of the view.
A view that is not displayed cannot be rotated.
In batch mode, the rotation of the view is modified, but no display occurs.
Created in NX3.0.0.
License requirements : None
matrix | Matrix relative to the absolute coordinate system. Must be orthonormal. |
void NXOpen::View::Rotate | ( | const NXOpen::Point3d & | origin, |
const NXOpen::Vector3d & | vector, | ||
double | angle | ||
) |
Rotates the specified view using the specified origin of rotation and about the specified axis.
The origin and the axis are specified in absolute coordinates. A view that is not displayed cannot be rotated.
In batch mode, the rotation of the view is modified, but no display occurs.
Created in NX3.0.0.
License requirements : None
origin | Origin in absolute space |
vector | X,Y,Z components in absolute space |
angle | Angle in degrees |
double NXOpen::View::Scale | ( | ) |
Returns the view scale.
Refer to NXOpen::View::GetExpandedScale for obtaining the scale of an expanded view.
Created in NX3.0.0.
License requirements : None
void NXOpen::View::SetDisclosurePurpose | ( | const NXString & | disclosurePurpose | ) |
Sets the Disclosure Purpose.
Created in NX11.0.1.
License requirements : None
disclosurePurpose | Disclosure Purpose string |
void NXOpen::View::SetDisclosurePurpose | ( | const char * | disclosurePurpose | ) |
Sets the Disclosure Purpose.
Created in NX11.0.1.
License requirements : None
disclosurePurpose | Disclosure Purpose string |
void NXOpen::View::SetLockRotations | ( | bool | newToggleState | ) |
Sets the "Lock Rotations" toggle state of a view.
If there is no error, the current toggle state is returned
Created in NX9.0.0.
License requirements : None
newToggleState | Sets new toggle state True - Sets toggle ON False - Sets toggle OFF |
void NXOpen::View::SetOrigin | ( | const NXOpen::Point3d & | origin | ) |
Moves the given position to the center of the view.
The position is given in absolute coordinates. The scale and rotation of the view are unchanged.
In batch mode, the origin of the view is changed internally, but no display occurs.
Created in NX4.0.0.
License requirements : None
origin | The new view origin |
void NXOpen::View::SetRenderingStyle | ( | NXOpen::View::RenderingStyleType | renderingStyle | ) |
Sets the rendering style of the view.
Created in NX4.0.0.
License requirements : None
renderingStyle | rendering style |
void NXOpen::View::SetRotationTranslationScale | ( | const NXOpen::Matrix3x3 & | rotMatrix, |
const NXOpen::Point3d & | translation, | ||
double | scale | ||
) |
Sets the rotation, translation and scale of the specified view.
The rotation is applied first, about the absolute origin. Then the translation of the "look at" point to the view center is done, then the view is scaled about the view center.
In batch mode, the rotation, translation and scale of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
rotMatrix | 3x3 rotation matrix to use for the view - replaces the existing view rotation matrix (is not concatenated with it |
translation | Point in view space to put at the center of the view |
scale | Absolute scale factor |
void NXOpen::View::SetScale | ( | double | scale | ) |
Sets the scale of the specified view to the desired scale factor.
In batch mode, the scale of the view is modified, but no display occurs.
Created in NX3.0.0.
License requirements : None
scale | Absolute scale factor |
void NXOpen::View::SetSyncViews | ( | bool | newToggleState | ) |
Sets the "Synchronized Views" toggle state of a view.
If there is no error, the current toggle state is returned
Created in NX9.0.0.
License requirements : None
newToggleState | Sets new toggle state True - Sets toggle ON False - Sets toggle OFF |
void NXOpen::View::SetTriadVisibility | ( | bool | triadVisibility | ) |
Sets the visibility of the view triad in the view.
Created in NX10.0.0.
License requirements : None
triadVisibility | triad visibility |
void NXOpen::View::SetWcsVisibility | ( | bool | isVisible | ) |
Sets the visibility of the WCS in the view.
Created in NX10.0.0.
License requirements : None
isVisible | is visible |
void NXOpen::View::SnapToClosestCannedOrientation | ( | ) |
Changes the orientation of the given view to the orientation of the canned view whose orientation is the closest to that of the given view.
A view that is not displayed cannot be snapped. If enabled, the change in the orientation of the view is animated.
In batch mode, the orientation of the view is changed internally, but no display occurs.
Created in NX4.0.0.
License requirements : None
void NXOpen::View::SnapToVariantCannedOrientation | ( | ) |
Similar to NXOpen::View::SnapToClosestCannedOrientation except it changes the orientation of the given view to the orientation of some canned view "variant" based on I-deas's 'snapview' logic whose orientation is the closest to one of the six orthographic and eight flavors of trimetric views.
In batch mode, the orientation of the view is changed internally, but no display occurs.
Created in NX5.0.0.
License requirements : None
bool NXOpen::View::SyncViews | ( | ) |
Returns the "Synchronized Views" toggle state of a view.
If there is no error, the current toggle state is returned
Created in NX9.0.0.
License requirements : None
bool NXOpen::View::TriadVisibility | ( | ) |
Returns the visibility of the view triad in the view.
Created in NX10.0.0.
License requirements : None
void NXOpen::View::UpdateCustomSymbols | ( | ) |
Updates custom symbol in a drawing member view or drawing sheet
Created in NX8.0.1.
License requirements : None
void NXOpen::View::UpdateDisplay | ( | ) |
Updates the display of given view, as needed.
The current scale of the view is used to determine the tessalation of curves, facets and software line fonts. The view must be already displayed.
In batch mode, internal state information is updated, but no display occurs.
Created in NX4.0.0.
License requirements : None
NXOpen::Preferences::ViewVisualizationSpecialEffects* NXOpen::View::VisualizationSpecialEffectsPreferences | ( | ) |
Returns an object to perform all visualization Special Effects related preferences settings
Created in NX3.0.0.
NXOpen::Preferences::ViewVisualizationVisual* NXOpen::View::VisualizationVisualPreferences | ( | ) |
Returns an object to perform all visualization related preferences settings
Created in NX3.0.0.
bool NXOpen::View::WcsVisibility | ( | ) |
Returns the visibility of the WCS in the view.
Created in NX10.0.0.
License requirements : None
void NXOpen::View::Zoom | ( | NXOpen::View::ScaleFactor | scaleFactor | ) |
Scales the specified view to a desired relative scale.
The "reduce" and "increase" scale options are fixed at 10%. All the scale options provided by NXOpen::View::ScaleFactor have an internal limiting factor. This scale can't be increased or decreased indefinitely. The change in view scale is not animated.
In batch mode, the scale of the view is modified, but no display occurs.
Created in NX3.0.0.
License requirements : None
scaleFactor | Relative scale factor |
void NXOpen::View::ZoomAboutPoint | ( | double | relativeScale, |
const NXOpen::Point3d & | scaleAboutPoint, | ||
const NXOpen::Point3d & | viewCenter | ||
) |
Scales the specified view such that the given scale_about_point does not move.
If the specified scale is extremely small or extremely large, a minimum or maximum scale will be used. These are the same minimum and maximum values as used interactively. The relative_scale will be concatenated to the current scale of the view, so that 1.0 means no change of scale and 2.0 means that the scale of the view will be doubled. The scale_about_point and current_view_center are given in View Space. The view must already be displayed.
In batch mode, the scale and translation of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
relativeScale | Relative scale [1.0 = no change] |
scaleAboutPoint | The point to remain stationary, in View Space |
viewCenter | The point to be considered as the view center, in View Space. This may be NULL, in which case the current view center is used. |
void NXOpen::View::ZoomByRectangle | ( | const NXOpen::Point3d & | corner1, |
const NXOpen::Point3d & | corner2 | ||
) |
Scales the specified view such that the specified rectangle is as large as possible while being fully contained within the viewport.
If the rectangle and the viewport do not have the same aspect ratio, the viewport will contain some of the view not within the rectangle. If the rectangle is extremely small or extremely large, a minimum or maximum scale will be used. These are the same minimum and maximum values as used interactively. The two opposite corners of the rectangle are given in View Space. The view must already be displayed. If enabled, the change in the bounds of the view is animated.
In batch mode, the scale and translation of the view are modified, but no display occurs.
Created in NX4.0.0.
License requirements : None
corner1 | One corner of the rectangle, in View Space |
corner2 | The opposite corner of the rectangle, in View Space |