| 1 |
NAME SoCameraKit SoCamKit "" { camera nodekit class } |
| 2 |
|
| 3 |
INCLUDE nodekits/SoCameraKit.h |
| 4 |
|
| 5 |
|
| 6 |
DESC { This nodekit class is used to create camera nodes that have |
| 7 |
a local transformation. |
| 8 |
\cSoCameraKit\. adds two public parts to the basic nodekit: |
| 9 |
\etransform\. and \ecamera\.. |
| 10 |
\p |
| 11 |
The \ecamera\. part is created by default as an \cSoPerspectiveCamera\. |
| 12 |
node, but may later be changed to any subclass of \cSoCamera\.. |
| 13 |
\p |
| 14 |
You can move the camera relative to the rest of the scene by creating |
| 15 |
and editing the \etransform\. part. |
| 16 |
\p |
| 17 |
\cSoCameraKit\. also adds a private part, \etransformGroup\., which is |
| 18 |
of type \cSoTransformSeparator\.. The kit uses this part to contain the |
| 19 |
effect of \etransform\. to move only the \ecamera\., while allowing the |
| 20 |
\ecamera\. to affect the rest of the scene. |
| 21 |
\p |
| 22 |
\cSoCameraKit\. is derived from \cSoBaseKit\. |
| 23 |
and thus also includes a \ecallbackList\. part for adding callback nodes. |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
METHOD "" SoCameraKit() { Constructor. } |
| 28 |
|
| 29 |
METHOD getClassNkitCat static |
| 30 |
const SoNodekitCatalog *getClassNodekitCatalog() const |
| 31 |
{ Returns an \cSoNodekitCatalog\. for the class \cSoCameraKit\.. } |
| 32 |
|
| 33 |
|
| 34 |
METHOD "" static SoType getClassTypeId() { |
| 35 |
Returns type identifier for this class. |
| 36 |
} |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
PART transform |
| 41 |
{ A transform that positions and orients the camera relative to the |
| 42 |
rest of the scene. |
| 43 |
Private parts keep the effect of the \etransform\. part localized. |
| 44 |
This part is \kNULL\. by default, but may be set to any subclass of |
| 45 |
\cSoTransform\. |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
PART camera |
| 50 |
{ The camera node for this nodekit. |
| 51 |
The \ecamera\. part is created by default as an \cSoPerspectiveCamera\. |
| 52 |
node, but may later be changed to any subclass of \cSoCamera\.. |
| 53 |
(e.g., \cSoPerspectiveCamera\., \cSoOrthographicCamera\.). |
| 54 |
} |
| 55 |
|
| 56 |
|
| 57 |
ALSO { |
| 58 |
SoAppearanceKit, |
| 59 |
SoBaseKit, |
| 60 |
SoLightKit, |
| 61 |
SoNodeKit, |
| 62 |
SoNodeKitDetail, |
| 63 |
SoNodeKitListPart, |
| 64 |
SoNodeKitPath, |
| 65 |
SoNodekitCatalog, |
| 66 |
SoSceneKit, |
| 67 |
SoSeparatorKit, |
| 68 |
SoShapeKit, |
| 69 |
SoWrapperKit } |