Class to build a 2D generalized scatter. More...
#include <MeshViz/graph/PoGeneralizedScatter.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoGeneralizedScatter () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoMFNode | markers |
SoSFInt32 | sizeValuesIndex |
SoSFInt32 | zValuesIndex |
SoMFVec3f | scaleFactor |
Builds a 2D generalized scatter on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D). A generalized scatter representation is a marker field representation where each marker is defined by a sub-scene graph. The field markers is used to define the sub-scene graph of each marker. If the number of sub-scene graphs is inferior to the number of markers to draw, they are cyclically used. The field scaleFactor defines a possibly non uniform scale applied to each marker. If the number of scales is inferior to the number of markers to draw, they are cyclically used. This scaleFactor can combined with a set of values (sizeValuesIndex), to fix the final size of markers. The abscissas of the markers are given by the geometry of the current mesh 1D, and the ordinates are given by one of the value-set of the current mesh 1D specified by the field yValuesIndex. Furthemore a value-set of the current mesh 1D, though the field zValuesIndex, can be used to define a depth for each marker. This class also takes into account of the current mesh 1D hints (PoMesh1DHints), and the current mesh 1D filter (PoMesh1DFilter) to filter the geometry of the current mesh 1D.
The interpretation of colorBinding is the following :
colorBinding | INHERITED |
yValuesIndex | 0 |
colorValuesIndex | 1 |
material | NULL |
markers | NULL |
sizeValuesIndex | -1 |
zValuesIndex | -1 |
scaleFactor | 1 1 1 |
PoGeneralizedScatter {
Separator alternateRep (from PoBase) {
AppearanceKit appearance (from PoBase)
Specifies the appearance of all the kit. By default lightModel.model=PHONG.
MatrixTransform domainTransform (from PoBase)
Corresponds to the domain transformation.
Group scatter
Contains a list of couple SoMaterial and sub-scene graph containing the markers if the field colorBinding is different from INHERITED, a list of sub-scene graphs otherwise.
}
}
PoGeneralizedScatter::PoGeneralizedScatter | ( | ) |
Constructor.
static const SoNodekitCatalog* PoGeneralizedScatter::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoChart.
static SoType PoGeneralizedScatter::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoChart.
virtual const SoNodekitCatalog* PoGeneralizedScatter::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoChart.
virtual SoType PoGeneralizedScatter::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoChart.
Defines the sub-scene graphs used for each marker.
If the number of sub-scene graphs is inferior to the number of markers to draw, they are cyclically used.
Defines a possibly non uniform scale applied to each marker.
If the number of scales is inferior to the number of markers to draw, they are cyclically used. Each scale values are combined to values of the set defined by the field sizeValuesIndex. For instance, if a value from the selected values-set (with sizeValuesIndex) is equals to 0.5, and the scaleFactor is (2, 1, 2), the size of the marker will be (1, 0.5, 1). If no size is specified (sizeValuesIndex = -1), only a non uniform scale (2, 1, 2) is applied to the original marker.
Defines the index of the set of values used to specify the size of markers.
If sizeValuesIndex = -1, only the scaleFactor is applied to each marker.
Defines the index of the set of values used to specify a z-coordinate for markers.
If zValuesIndex = -1, the z-coordinate used is 0.