public class PbDomain extends PbBase implements java.lang.Cloneable
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 refer to.
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.
All methods concerning 2D domain, set the value zmin to 0 and the value zmax to 1. By default xmin = ymin = zmin = 0, xmax = ymax = zmax = 1 and the type of transformation is SCALE_X_FIXED.
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 :
Modifier and Type | Class and Description |
---|---|
static class |
PbDomain.BoundingBoxTypes
Bounding box interpretation.
|
static class |
PbDomain.TransformTypes
Transform type.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
AS_IS
Deprecated.
Use
PbDomain.BoundingBoxTypes.AS_IS instead. |
static int |
MAX_BOUNDED_CUBE
Deprecated.
Use
PbDomain.BoundingBoxTypes.MAX_BOUNDED_CUBE instead. |
static int |
MIN_BOUNDING_CUBE
Deprecated.
Use
PbDomain.BoundingBoxTypes.MIN_BOUNDING_CUBE instead. |
static int |
SCALE_MAX_XYZ_FIXED
Deprecated.
Use
PbDomain.TransformTypes.SCALE_MAX_XYZ_FIXED instead. |
static int |
SCALE_X_FIXED
Deprecated.
Use
PbDomain.TransformTypes.SCALE_X_FIXED instead. |
static int |
SCALE_Y_FIXED
Deprecated.
Use
PbDomain.TransformTypes.SCALE_Y_FIXED instead. |
static int |
SCALE_Z_FIXED
Deprecated.
Use
PbDomain.TransformTypes.SCALE_Z_FIXED instead. |
static int |
TRANSFORM_01
Deprecated.
Use
PbDomain.TransformTypes.TRANSFORM_01 instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PbDomain()
Default constructor.
|
PbDomain(float xmin,
float ymin,
float xmax,
float ymax)
Calls PbDomain(xmin, ymin, xmax, ymax, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
PbDomain(float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax)
Calls PbDomain(xmin, ymin, zmin, xmax, ymax, zmax, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
PbDomain(float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax,
PbDomain.BoundingBoxTypes type)
Constructor of a 3D domain.
|
PbDomain(float xmin,
float ymin,
float xmax,
float ymax,
PbDomain.BoundingBoxTypes type)
Constructor of a 2D domain.
|
PbDomain(PbDomain domain)
Copy constructor.
|
PbDomain(SbBox2f box)
Calls PbDomain(box, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
PbDomain(SbBox2f box,
PbDomain.BoundingBoxTypes type)
Constructor of a 2D domain.
|
PbDomain(SbBox3f box)
Calls PbDomain(box, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
PbDomain(SbBox3f box,
PbDomain.BoundingBoxTypes type)
Constructor of a 3D domain.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
SbBox2f |
get2DDomain()
Gets the 2D domain.
|
SbBox3f |
get3DDomain()
Gets the 3D domain.
|
SbMatrix |
getMatrix()
Get the domain transform matrix in an
SbMatrix object. |
SoMatrixTransform |
getMatrixTransform()
Get the domain transform matrix in an
SoMatrixTransform object. |
SoTransform |
getTransform()
Get the domain transform matrix in an
SoTransform object. |
PbDomain.TransformTypes |
getTransformType()
Gets the type of transformation.
|
void |
setDomain(float xmin,
float ymin,
float xmax,
float ymax)
Calls setDomain(xmin, ymin, xmax, ymax, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
void |
setDomain(float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax)
Calls setDomain(xmin, ymin, zmin, xmax, ymax, zmax, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
void |
setDomain(float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax,
PbDomain.BoundingBoxTypes type)
Sets a 3D domain.
|
void |
setDomain(float xmin,
float ymin,
float xmax,
float ymax,
PbDomain.BoundingBoxTypes type)
Sets a 2D domain.
|
void |
setDomain(SbBox2f box)
Calls setDomain(box, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
void |
setDomain(SbBox2f box,
PbDomain.BoundingBoxTypes type)
Sets a 2D domain.
|
void |
setDomain(SbBox3f box)
Calls setDomain(box, PbDomain.BoundingBoxTypes.valueOf( PbDomain.BoundingBoxTypes.AS_IS.getValue() )).
|
void |
setDomain(SbBox3f box,
PbDomain.BoundingBoxTypes type)
Sets a 3D domain.
|
void |
setTransformType(PbDomain.TransformTypes type)
Sets the type of transformation.
|
enableConnection, isConnectionEnabled, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int TRANSFORM_01
PbDomain.TransformTypes.TRANSFORM_01
instead.@Deprecated public static final int SCALE_X_FIXED
PbDomain.TransformTypes.SCALE_X_FIXED
instead.@Deprecated public static final int SCALE_Y_FIXED
PbDomain.TransformTypes.SCALE_Y_FIXED
instead.@Deprecated public static final int SCALE_Z_FIXED
PbDomain.TransformTypes.SCALE_Z_FIXED
instead.@Deprecated public static final int SCALE_MAX_XYZ_FIXED
PbDomain.TransformTypes.SCALE_MAX_XYZ_FIXED
instead.@Deprecated public static final int AS_IS
PbDomain.BoundingBoxTypes.AS_IS
instead.@Deprecated public static final int MIN_BOUNDING_CUBE
PbDomain.BoundingBoxTypes.MIN_BOUNDING_CUBE
instead.@Deprecated public static final int MAX_BOUNDED_CUBE
PbDomain.BoundingBoxTypes.MAX_BOUNDED_CUBE
instead.public PbDomain(SbBox2f box)
public PbDomain(SbBox3f box)
public PbDomain(float xmin, float ymin, float xmax, float ymax)
public PbDomain(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)
public PbDomain(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax, PbDomain.BoundingBoxTypes type)
public PbDomain(float xmin, float ymin, float xmax, float ymax, PbDomain.BoundingBoxTypes type)
public PbDomain()
public PbDomain(PbDomain domain)
public PbDomain(SbBox3f box, PbDomain.BoundingBoxTypes type)
public PbDomain(SbBox2f box, PbDomain.BoundingBoxTypes type)
public void setDomain(SbBox2f box)
public void setDomain(float xmin, float ymin, float xmax, float ymax)
public void setDomain(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)
public void setDomain(SbBox3f box)
public java.lang.Object clone()
clone
in class java.lang.Object
public void setDomain(float xmin, float ymin, float xmax, float ymax, PbDomain.BoundingBoxTypes type)
public void setDomain(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax, PbDomain.BoundingBoxTypes type)
public SoMatrixTransform getMatrixTransform()
SoMatrixTransform
object.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public PbDomain.TransformTypes getTransformType()
public SoTransform getTransform()
SoTransform
object.public void setTransformType(PbDomain.TransformTypes type)
public void setDomain(SbBox3f box, PbDomain.BoundingBoxTypes type)
public void setDomain(SbBox2f box, PbDomain.BoundingBoxTypes type)
public SbBox3f get3DDomain()
public SbBox2f get2DDomain()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com