public interface View extends NXObject
ViewCollection
or from ModelingViewCollection
.
Modifier and Type | Interface and Description |
---|---|
static class |
View.Canned
Describes a simplified indexing scheme for accessing canned views
with interfaces that use this enum as a parameter.
|
static class |
View.RenderingStyleType
Describes the rendering style for geometry displayed in the view.
|
static class |
View.ScaleAdjustment
Describes simple, predefined adjustments that may be applied to a
view's scale while another operation is performed, in conjunction, on the view.
|
static class |
View.ScaleFactor
Describes the relative scales to which a view can be set
|
static class |
View.ShowOrHideType
Specifies whether a show or hide operation, or both, has just been done
|
NXObject.AttributeInformation, NXObject.AttributeType, NXObject.ComputationalTime, NXObject.DateAndTimeFormat
Modifier and Type | Method and Description |
---|---|
Point3d |
absoluteOrigin()
Returns the view origin in absolute space.
|
DisplayableObject[] |
askVisibleObjects()
Returns an array of objects visible in a view
License requirements: None. |
void |
concatenate(double scale)
Concatenates the given scale with the previous viewing transformation
of the specified view.
|
void |
concatenate(double scale,
Point3d centerOfRotation,
Vector3d rotationAxis,
double angle)
Concatenates the given scale and rotation with the previous viewing
transformation of the specified view.
|
void |
concatenate(Point3d translation)
Concatenates the given translation with the previous viewing transformation
of the specified view.
|
void |
concatenate(Point3d translation,
double scale)
Concatenates the given translation and scale with the previous viewing
transformation of the specified view.
|
void |
concatenate(Point3d translation,
double scale,
Point3d centerOfRotation,
Vector3d rotationAxis,
double angle)
Concatenates the given translation, scale and rotation with the previous
viewing transformation of the specified view.
|
void |
concatenate(Point3d translation,
Point3d centerOfRotation,
Vector3d rotationAxis,
double angle)
Concatenates the given translation and rotation with the previous viewing
transformation of the specified view.
|
void |
concatenate(Point3d centerOfRotation,
Vector3d rotationAxis,
double angle)
Concatenates the given rotation with the previous viewing transformation
of the specified view.
|
ViewDependentDisplayManager |
dependentDisplay()
Returns an object to perform all view dependent display operations .
|
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.
|
void |
fit()
Adjusts the bounds of a given view so that it fully encompasses
the extents of the model geometry.
|
void |
fitAfterShowOrHide(View.ShowOrHideType type)
Adjusts the bounds of a given view conditionally so that it fully encompasses
the extents of the model geometry.
|
void |
fitToObjects(IFitTo[] objects)
Adjusts the bounds of a given view so that it fully encompasses
the extents of the given objects.
|
Vector3d |
getAxis(XYZAxis xYZAxis)
Returns one of the view axes.
|
boolean |
lockRotations()
Returns the "Lock Rotations" toggle state of a view.
|
void |
makeWork()
Makes the given view the work view.
|
Matrix3x3 |
matrix()
Returns the view matrix.
|
void |
orient(Matrix3x3 matrix)
Changes the view orientation relative to the specified absolute coordinate system.
|
void |
orient(String viewName,
View.ScaleAdjustment viewScale)
Changes the view orientation to a specified view.
|
void |
orient(View.Canned viewName,
View.ScaleAdjustment viewScale)
Changes the view orientation to a specified canned view.
|
Point3d |
origin()
Returns the view origin.
|
void |
regenerate()
Regenerates the display of given view.
|
View.RenderingStyleType |
renderingStyle()
Returns the rendering style of the view.
|
boolean |
restore()
Restores a view to its last remembered rotation, scale and translation.
|
void |
rotate(Matrix3x3 matrix)
Rotates the view by concatenating the given matrix to the existing rotation
matrix of the view.
|
void |
rotate(Point3d origin,
Vector3d vector,
double angle)
Rotates the specified view using the specified origin of rotation
and about the specified axis.
|
double |
scale()
Returns the view scale
License requirements: None. |
void |
setLockRotations(boolean newToggleState)
Sets the "Lock Rotations" toggle state of a view.
|
void |
setOrigin(Point3d origin)
Moves the given position to the center of the view.
|
void |
setRenderingStyle(View.RenderingStyleType renderingStyle)
Sets the rendering style of the view.
|
void |
setRotationTranslationScale(Matrix3x3 rotMatrix,
Point3d translation,
double scale)
Sets the rotation, translation and scale of the specified view.
|
void |
setScale(double scale)
Sets the scale of the specified view to the desired scale factor.
|
void |
setSyncViews(boolean newToggleState)
Sets the "Synchronized Views" toggle state of a view.
|
void |
setTriadVisibility(boolean triadVisibility)
Sets the visibility of the view triad in the view.
|
void |
setWcsVisibility(boolean isVisible)
License requirements: None. |
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.
|
void |
snapToVariantCannedOrientation()
Similar to
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. |
boolean |
syncViews()
Returns the "Synchronized Views" toggle state of a view.
|
boolean |
triadVisibility()
Returns the visibility of the view triad in the view.
|
void |
updateCustomSymbols()
Updates custom symbol in a drawing member view or drawing sheet
License requirements: None. |
void |
updateDisplay()
Updates the display of given view, as needed.
|
ViewVisualizationSpecialEffects |
visualizationSpecialEffectsPreferences()
Returns an object to perform all visualization Special Effects related preferences settings .
|
ViewVisualizationVisual |
visualizationVisualPreferences()
Returns an object to perform all visualization related preferences settings .
|
boolean |
wcsVisibility()
Returns the visibility of the WCS in the view.
|
void |
zoom(View.ScaleFactor scaleFactor)
Scales the specified view to a desired relative scale.
|
void |
zoomAboutPoint(double relativeScale,
Point3d scaleAboutPoint,
Point3d viewCenter)
Scales the specified view such that the given scale_about_point does not move.
|
void |
zoomByRectangle(Point3d corner1,
Point3d corner2)
Scales the specified view such that the specified rectangle is as large
as possible while being fully contained within the viewport.
|
deleteAllAttributesByType, deleteAllAttributesByType, deleteAttributeByTypeAndTitle, deleteAttributeByTypeAndTitle, deleteUserAttribute, deleteUserAttributes, getAttributeTitlesByType, getBooleanUserAttribute, getComputationalTimeUserAttribute, getIntegerAttribute, getIntegerUserAttribute, getRealAttribute, getRealUserAttribute, getReferenceAttribute, getStringAttribute, getStringUserAttribute, getTimeAttribute, getTimeUserAttribute, getUserAttribute, getUserAttribute, getUserAttributeAsString, getUserAttributeCount, getUserAttributeCount, getUserAttributeLock, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributesAsStrings, getUserAttributeSize, getUserAttributeSourceObjects, hasUserAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBooleanUserAttribute, setReferenceAttribute, setReferenceAttribute, setTimeAttribute, setTimeAttribute, setTimeUserAttribute, setTimeUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttributeLock
printTestData, printTestData, tag, tagValue
findObject, isOccurrence, journalIdentifier, name, owningComponent, owningPart, print, prototype, setName
ViewVisualizationVisual visualizationVisualPreferences() throws RemoteException
RemoteException
ViewVisualizationSpecialEffects visualizationSpecialEffectsPreferences() throws RemoteException
RemoteException
ViewDependentDisplayManager dependentDisplay() throws RemoteException
RemoteException
void concatenate(Point3d translation) throws NXException, RemoteException
translation
- Point in view space to put at the center of the viewNXException
RemoteException
void concatenate(double scale) throws NXException, RemoteException
scale
- Relative scale factorNXException
RemoteException
void concatenate(Point3d translation, double scale) throws NXException, RemoteException
translation
- Point in view space to put at the center of the viewscale
- Relative scale factorNXException
RemoteException
void concatenate(Point3d centerOfRotation, Vector3d rotationAxis, double angle) throws NXException, RemoteException
centerOfRotation
- If not NULL, this specifies a point in view
space about which the view is to be rotatedrotationAxis
- The axis to rotate aboutangle
- Rotation angle in radiansNXException
RemoteException
void concatenate(Point3d translation, Point3d centerOfRotation, Vector3d rotationAxis, double angle) throws NXException, RemoteException
translation
- Point in view space to put at the center of the viewcenterOfRotation
- If not NULL, this specifies a point in view
space about which the view is to be rotatedrotationAxis
- The axis to rotate aboutangle
- Rotation angle in radiansNXException
RemoteException
void concatenate(double scale, Point3d centerOfRotation, Vector3d rotationAxis, double angle) throws NXException, RemoteException
scale
- Relative scale factorcenterOfRotation
- If not NULL, this specifies a point in view
space about which the view is to be rotatedrotationAxis
- The axis to rotate aboutangle
- Rotation angle in radiansNXException
RemoteException
void concatenate(Point3d translation, double scale, Point3d centerOfRotation, Vector3d rotationAxis, double angle) throws NXException, RemoteException
translation
- Point in view space to put at the center of the viewscale
- Relative scale factorcenterOfRotation
- If not NULL, this specifies a point in view
space about which the view is to be rotatedrotationAxis
- The axis to rotate aboutangle
- Rotation angle in radiansNXException
RemoteException
void expand() throws NXException, RemoteException
NXException
RemoteException
void fit() throws NXException, RemoteException
NXException
RemoteException
void fitAfterShowOrHide(View.ShowOrHideType type) throws NXException, RemoteException
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.
type
- Whether a Show or Hide or both has been doneNXException
RemoteException
void fitToObjects(IFitTo[] objects) throws NXException, RemoteException
objects
- The objects
whose display is to be included in the displayed bounds of the viewNXException
RemoteException
Matrix3x3 matrix() throws NXException, RemoteException
NXException
RemoteException
Point3d origin() throws NXException, RemoteException
matrix()
and nxopen.View#setMatrix
. Note that the origin in this method is not in
the same space as the origin passed to origin()
and setOrigin(nxopen.Point3d)
, where
the input origin is in absolute space.
concatenate(nxopen.Point3d)
and in the other similar concatenate methods.
absoluteOrigin()
and nxopen.View#setAbsoluteOrigin
NXException
RemoteException
Point3d absoluteOrigin() throws NXException, RemoteException
NXException
RemoteException
double scale() throws NXException, RemoteException
NXException
RemoteException
Vector3d getAxis(XYZAxis xYZAxis) throws NXException, RemoteException
xYZAxis
- Whether to return the X, Y or Z axisNXException
RemoteException
void makeWork() throws NXException, RemoteException
NXException
RemoteException
void orient(Matrix3x3 matrix) throws NXException, RemoteException
matrix
- Orientation relative to the absolute coordinate system.
Must be orthonormal.NXException
RemoteException
void orient(View.Canned viewName, View.ScaleAdjustment viewScale) throws NXException, RemoteException
viewName
- Canned view nameviewScale
- Desired view scaleNXException
RemoteException
void orient(String viewName, View.ScaleAdjustment viewScale) throws NXException, RemoteException
viewName
- Custom view name viewScale
- Desired view scaleNXException
RemoteException
void regenerate() throws NXException, RemoteException
NXException
RemoteException
boolean restore() throws NXException, RemoteException
NXException
RemoteException
void rotate(Matrix3x3 matrix) throws NXException, RemoteException
matrix
- Matrix relative to the absolute coordinate system.
Must be orthonormal.NXException
RemoteException
void rotate(Point3d origin, Vector3d vector, double angle) throws NXException, RemoteException
origin
- Origin in absolute spacevector
- X,Y,Z components in absolute spaceangle
- Angle in degreesNXException
RemoteException
void setOrigin(Point3d origin) throws NXException, RemoteException
origin
- The new view originNXException
RemoteException
void setScale(double scale) throws NXException, RemoteException
scale
- Absolute scale factorNXException
RemoteException
void setRotationTranslationScale(Matrix3x3 rotMatrix, Point3d translation, double scale) throws NXException, RemoteException
rotMatrix
- 3x3 rotation matrix to use for the view - replaces
the existing view rotation matrix (is not
concatenated with ittranslation
- Point in view space to put at the center of the viewscale
- Absolute scale factorNXException
RemoteException
void snapToClosestCannedOrientation() throws NXException, RemoteException
NXException
RemoteException
void snapToVariantCannedOrientation() throws NXException, RemoteException
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.
NXException
RemoteException
void updateDisplay() throws NXException, RemoteException
NXException
RemoteException
void zoom(View.ScaleFactor scaleFactor) throws NXException, RemoteException
View.ScaleFactor
have an internal limiting factor. This scale can't be
increased or decreased indefinitely. The change in view scale is not animated.
scaleFactor
- Relative scale factorNXException
RemoteException
void zoomAboutPoint(double relativeScale, Point3d scaleAboutPoint, Point3d viewCenter) throws NXException, RemoteException
relativeScale
- Relative scale [1.0 = no change]scaleAboutPoint
- The point to remain stationary, in View SpaceviewCenter
- 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.NXException
RemoteException
void zoomByRectangle(Point3d corner1, Point3d corner2) throws NXException, RemoteException
corner1
- One corner of the rectangle, in View Spacecorner2
- The opposite corner of the rectangle, in View SpaceNXException
RemoteException
View.RenderingStyleType renderingStyle() throws NXException, RemoteException
NXException
RemoteException
void setRenderingStyle(View.RenderingStyleType renderingStyle) throws NXException, RemoteException
renderingStyle
- NXException
RemoteException
DisplayableObject[] askVisibleObjects() throws NXException, RemoteException
NXException
RemoteException
void updateCustomSymbols() throws NXException, RemoteException
NXException
RemoteException
boolean lockRotations() throws NXException, RemoteException
NXException
RemoteException
void setLockRotations(boolean newToggleState) throws NXException, RemoteException
newToggleState
- Sets new toggle state
NXException
RemoteException
boolean syncViews() throws NXException, RemoteException
NXException
RemoteException
void setSyncViews(boolean newToggleState) throws NXException, RemoteException
newToggleState
- Sets new toggle state
NXException
RemoteException
boolean wcsVisibility() throws NXException, RemoteException
NXException
RemoteException
void setWcsVisibility(boolean isVisible) throws NXException, RemoteException
isVisible
- NXException
RemoteException
boolean triadVisibility() throws NXException, RemoteException
NXException
RemoteException
void setTriadVisibility(boolean triadVisibility) throws NXException, RemoteException
triadVisibility
- NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.