| 1 |
NAME SoProfile SoProf SO_PROF_ { abstract base class for all profile nodes } |
| 2 |
|
| 3 |
INCLUDE nodes/SoProfile.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This node is the abstract base class for all profile nodes, which |
| 7 |
define 2D curves. A profile is not itself geometry, but is used to |
| 8 |
change or delimit the geometry of something else. For an \cSoText3\. |
| 9 |
node, the profile determines the cross-section of the side of each |
| 10 |
text character. For an \cSoNurbsSurface\. node, the profile is used to |
| 11 |
specify trim curves for the surface. |
| 12 |
\p |
| 13 |
The current profile state can consist of one or more profiles, each of |
| 14 |
which can be made up of one or more instances of \cSoProfile\. |
| 15 |
subclass nodes. Each profile node specifies (in the \vindex\. field) a |
| 16 |
set of indices that refer to the current set of profile coordinates, |
| 17 |
specified using either an \cSoProfileCoordinate2\. or an |
| 18 |
\cSoProfileCoordinate3\. node. No profile curve should intersect |
| 19 |
itself or another profile curve. |
| 20 |
\p |
| 21 |
Profiles are part of the state, just like all other properties. The |
| 22 |
state contains a current list of profiles. Depending on the |
| 23 |
\vlinkage\. field, a profile can clear the list and begin a new |
| 24 |
profile, begin a new profile at the end of those already in the list, |
| 25 |
or append to the last profile in the current list. Note that when |
| 26 |
appending profile B to the end of profile A, B must begin at the same |
| 27 |
2D point at which A ends. |
| 28 |
} |
| 29 |
|
| 30 |
ENUM Profile { |
| 31 |
START_FIRST "Start a new profile and remove any existing profiles |
| 32 |
from the current list", |
| 33 |
START_NEW "Start a new profile and add it to the current list", |
| 34 |
ADD_TO_CURRENT "Add to end of the last profile in the current list" |
| 35 |
} |
| 36 |
|
| 37 |
FIELD index { Indices into profile coordinates. } |
| 38 |
|
| 39 |
FIELD linkage { |
| 40 |
Specifies connectivity of profile curve with respect to profiles in |
| 41 |
current list in state. |
| 42 |
} |
| 43 |
|
| 44 |
METHOD "" static SoType getClassTypeId() { |
| 45 |
Returns type identifier for this class. |
| 46 |
} |
| 47 |
|
| 48 |
ACTION SoGLRenderAction, SoCallbackAction, |
| 49 |
SoGetBoundingBoxAction, SoRayPickAction { |
| 50 |
Adds profile to current traversal state. |
| 51 |
} |
| 52 |
|
| 53 |
ALSO { |
| 54 |
SoLinearProfile, |
| 55 |
SoNurbsProfile, |
| 56 |
SoNurbsSurface, |
| 57 |
SoProfileCoordinate2, |
| 58 |
SoProfileCoordinate3, |
| 59 |
SoText3 |
| 60 |
} |