public class PoDomain extends PoNode
The domain usually defines the data coordinate limits of graphics to be generated. Graph Master & 3D Data Master do not calculate these limits, so this class provides them. In conceptual terms, a 2D domain (3D domain) is the smallest rectangle (parallelepiped) capable of containing the data for the image to be generated. The sides of this rectangle (parallelepiped) are parallel to the axis. Furthermore all Graph Master & 3D Data Master nodekits classes may be transformed according to the domain which they depend on.
There are five possible transformations (we note dx = xmax - xmin, dy = ymax - ymin and dz = zmax - zmin, xmin, ymin,..., zmax are the limits of the domain):
Except the first transformation type, the others compute a scaling only if the domain is heterogeneous.
Data given by the user to define the coordinates of the domain (xmin, ymin, zmin, xmax,...) can be interpreted if the user wants to. The interpretation of these data depends on the value of the last attribute (of type BoundingBoxType) of each method for setting domain coordinates. Values for this attribute can be :
NOTE: PoDomain
is effectively a transform node, but ONLY affects MeshViz nodes. If you want the PoDomain
transform to apply to other geometry, use the getTransform()
method to get an SoTransform
node and insert that node in the scene graph above the other geometry.
File format/default:
PoDomain
{
min | 0 0 0 |
max | 1 1 1 |
transformType | SCALE_X_FIXED |
Modifier and Type | Class and Description |
---|---|
static class |
PoDomain.BoundingBoxTypes
Bounding box interpretation.
|
static class |
PoDomain.TransformTypes
Transform type.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
AS_IS
Deprecated.
Use
PoDomain.BoundingBoxTypes.AS_IS instead. |
SoSFVec3f |
max
Define the maximum of the domain.
|
static int |
MAX_BOUNDED_CUBE
Deprecated.
Use
PoDomain.BoundingBoxTypes.MAX_BOUNDED_CUBE instead. |
SoSFVec3f |
min
Define the minimum of the domain.
|
static int |
MIN_BOUNDING_CUBE
Deprecated.
Use
PoDomain.BoundingBoxTypes.MIN_BOUNDING_CUBE instead. |
static int |
SCALE_MAX_XYZ_FIXED
Deprecated.
Use
PoDomain.TransformTypes.SCALE_MAX_XYZ_FIXED instead. |
static int |
SCALE_X_FIXED
Deprecated.
Use
PoDomain.TransformTypes.SCALE_X_FIXED instead. |
static int |
SCALE_Y_FIXED
Deprecated.
Use
PoDomain.TransformTypes.SCALE_Y_FIXED instead. |
static int |
SCALE_Z_FIXED
Deprecated.
Use
PoDomain.TransformTypes.SCALE_Z_FIXED instead. |
static int |
TRANSFORM_01
Deprecated.
Use
PoDomain.TransformTypes.TRANSFORM_01 instead. |
SoSFEnum<PoDomain.TransformTypes> |
transformType
Define the transformation type of the domain.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PoDomain()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SoMatrixTransform |
getMatrixTransform()
Get the domain transform matrix in an
SbMatrix object. |
SoTransform |
getTransform()
Get the domain transform matrix in an
SoTransform object. |
void |
setValues(SbVec2f min,
SbVec2f max)
Calls setValues(min, max, PoDomain.BoundingBoxTypes.valueOf( PoDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
void |
setValues(SbVec2f min,
SbVec2f max,
PoDomain.BoundingBoxTypes type)
Convenience method to define a 2D domain.
|
void |
setValues(SbVec3f min,
SbVec3f max)
Calls setValues(min, max, PoDomain.BoundingBoxTypes.valueOf( PoDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
void |
setValues(SbVec3f min,
SbVec3f max,
PoDomain.BoundingBoxTypes type)
Convenience method to define a 3D domain.
|
callback, doAction, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, search, write
affectsState, copy, copy, distribute, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, rayPick, setOverride, touch
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int TRANSFORM_01
PoDomain.TransformTypes.TRANSFORM_01
instead.@Deprecated public static final int SCALE_X_FIXED
PoDomain.TransformTypes.SCALE_X_FIXED
instead.@Deprecated public static final int SCALE_Y_FIXED
PoDomain.TransformTypes.SCALE_Y_FIXED
instead.@Deprecated public static final int SCALE_Z_FIXED
PoDomain.TransformTypes.SCALE_Z_FIXED
instead.@Deprecated public static final int SCALE_MAX_XYZ_FIXED
PoDomain.TransformTypes.SCALE_MAX_XYZ_FIXED
instead.@Deprecated public static final int AS_IS
PoDomain.BoundingBoxTypes.AS_IS
instead.@Deprecated public static final int MIN_BOUNDING_CUBE
PoDomain.BoundingBoxTypes.MIN_BOUNDING_CUBE
instead.@Deprecated public static final int MAX_BOUNDED_CUBE
PoDomain.BoundingBoxTypes.MAX_BOUNDED_CUBE
instead.public final SoSFVec3f min
public final SoSFVec3f max
public final SoSFEnum<PoDomain.TransformTypes> transformType
public void setValues(SbVec3f min, SbVec3f max)
public void setValues(SbVec2f min, SbVec2f max)
public void setValues(SbVec2f min, SbVec2f max, PoDomain.BoundingBoxTypes type)
public void setValues(SbVec3f min, SbVec3f max, PoDomain.BoundingBoxTypes type)
public SoTransform getTransform()
SoTransform
object.public SoMatrixTransform getMatrixTransform()
SbMatrix
object.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com