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.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFVec3f |
max
Define the maximum of the domain.
|
SoSFVec3f |
min
Define the minimum of the domain.
|
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, getRenderEngineMode, 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, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFVec3f min
public final SoSFVec3f max
public final SoSFEnum<PoDomain.TransformTypes> transformType
public void setValues(SbVec2f min, SbVec2f max)
public void setValues(SbVec3f min, SbVec3f max)
public SoTransform getTransform()
SoTransform
object.public SoMatrixTransform getMatrixTransform()
SbMatrix
object.public void setValues(SbVec2f min, SbVec2f max, PoDomain.BoundingBoxTypes type)
public void setValues(SbVec3f min, SbVec3f max, PoDomain.BoundingBoxTypes type)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com