NX Open C++ Reference Guide
|
Provides non-proportional zoom capability <br> To create a new instance of this class, use @link ViewCollection::CreateNonProportionalZoom ViewCollection::CreateNonProportionalZoom @endlink <br>
Default values. More...
Public Types | |
enum | MethodType { MethodTypeRectangle, MethodTypeDynamic } |
Sets the kind of mouse interaction that will define the non-proportional zoom. More... | |
Public Member Functions | |
bool | AnchorCenter () |
Returns a value indicating if the display will be recentered on the initial line endpoint Created in NX7.0.0. | |
void | Enable (bool enable) |
Enables non-proportional zoom. | |
void | Finish (NXOpen::View *view) |
Signals the completion of a non-proportional zoom defined by one or more pairs of points defined by a mouse gesture. | |
void | FirstPoint (const NXOpen::Point3d &point1, NXOpen::View *view) |
Scales the specified view non-proportionally in the horizontal (X) and vertical (Y) dimensions, based on a mouse gesture defined by two points in a view. | |
NXOpen::Display::NonProportionalZoom::MethodType | Method () |
Returns the type of mouse interaction used to define the non-proportional zoom. | |
void | SecondPoint (const NXOpen::Point3d &point2, NXOpen::View *view) |
Scales the specified view non-proportionally in the horizontal (X) and vertical (Y) dimensions, based on a mouse gesture defined by two points in a view. | |
void | SetAnchorCenter (bool anchorCenter) |
Sets a value indicating if the display will be recentered on the initial line endpoint Created in NX7.0.0. | |
void | SetMethod (NXOpen::Display::NonProportionalZoom::MethodType method) |
Sets the type of mouse interaction used to define the non-proportional zoom. | |
void | SetZoomSensitivity (int sensitivity) |
Sets the sensitivity of the zoom relative to the length of the drawn line Created in NX7.0.0. | |
void | Start (NXOpen::View *view) |
Prepares NX to receive one or more gestures delimited by pairs of points which define a non-proportional zoom. | |
int | ZoomSensitivity () |
Returns the sensitivity of the zoom relative to the length of the drawn line Created in NX7.0.0. | |
![]() | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Provides non-proportional zoom capability <br> To create a new instance of this class, use @link ViewCollection::CreateNonProportionalZoom ViewCollection::CreateNonProportionalZoom @endlink <br>
Default values.
Property | Value |
---|---|
AnchorCenter |
0 |
Method |
Dynamic |
ZoomSensitivity |
5 |
Created in NX7.0.0.
bool NXOpen::Display::NonProportionalZoom::AnchorCenter | ( | ) |
Returns a value indicating if the display will be recentered on the initial line endpoint
Created in NX7.0.0.
License requirements : None
void NXOpen::Display::NonProportionalZoom::Enable | ( | bool | enable | ) |
Enables non-proportional zoom.
<br> In batch mode, the the aspect ratio, scale and center of the view are modified, but no display occurs. <br>
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
enable | True if using the previously defined non-proportional zoom |
void NXOpen::Display::NonProportionalZoom::Finish | ( | NXOpen::View * | view | ) |
Signals the completion of a non-proportional zoom defined by one or more pairs of points defined by a mouse gesture.
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
view | the view to receive gestures |
void NXOpen::Display::NonProportionalZoom::FirstPoint | ( | const NXOpen::Point3d & | point1, |
NXOpen::View * | view | ||
) |
Scales the specified view non-proportionally in the horizontal (X) and vertical (Y) dimensions, based on a mouse gesture defined by two points in a view.
Based on Display::NonProportionalZoom::MethodType setting, the gesture may be interpreted as a bounding box or a line, but will determine the XY aspect ratio and the zoom.
In batch mode, the the aspect ratio, scale and center of the view are modified, but no display occurs.
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
point1 | First point in a mouse gesture to define a non-proportional zoom |
view | Apply pan (if any) and scale in this view only, if it still exists |
NXOpen::Display::NonProportionalZoom::MethodType NXOpen::Display::NonProportionalZoom::Method | ( | ) |
Returns the type of mouse interaction used to define the non-proportional zoom.
Created in NX7.0.0.
License requirements : None
void NXOpen::Display::NonProportionalZoom::SecondPoint | ( | const NXOpen::Point3d & | point2, |
NXOpen::View * | view | ||
) |
Scales the specified view non-proportionally in the horizontal (X) and vertical (Y) dimensions, based on a mouse gesture defined by two points in a view.
Call this once for every call to first point, to redefine a non-proportional zoom.
In batch mode, the the aspect ratio, scale and center of the view are modified, but no display occurs.
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
point2 | Second point in a mouse gesture to define a non-proportional zoom |
view | Apply pan (if any) and scale in this view only, if it still exists |
void NXOpen::Display::NonProportionalZoom::SetAnchorCenter | ( | bool | anchorCenter | ) |
Sets a value indicating if the display will be recentered on the initial line endpoint
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
anchorCenter | anchorcenter |
void NXOpen::Display::NonProportionalZoom::SetMethod | ( | NXOpen::Display::NonProportionalZoom::MethodType | method | ) |
Sets the type of mouse interaction used to define the non-proportional zoom.
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
method | method |
void NXOpen::Display::NonProportionalZoom::SetZoomSensitivity | ( | int | sensitivity | ) |
Sets the sensitivity of the zoom relative to the length of the drawn line
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
sensitivity | sensitivity |
void NXOpen::Display::NonProportionalZoom::Start | ( | NXOpen::View * | view | ) |
Prepares NX to receive one or more gestures delimited by pairs of points which define a non-proportional zoom.
This function records the display state to which the view will return when non-proportional zoom is disabled. In a typical scenario, call start. Then call first point accompanied by one or more calls to second point, followed by a call to finish, followed optionaly by further first point/second point/finish combinations of calls.
Created in NX7.0.0.
License requirements : studio_analyze ("STUDIO ANALYZE")
view | the view to receive gestures |
int NXOpen::Display::NonProportionalZoom::ZoomSensitivity | ( | ) |
Returns the sensitivity of the zoom relative to the length of the drawn line
Created in NX7.0.0.
License requirements : None