1 #ifndef COIN_SOCALLBACKACTION_H
2 #define COIN_SOCALLBACKACTION_H
29 #include <Inventor/actions/SoAction.h>
30 #include <Inventor/actions/SoSubAction.h>
31 #include <Inventor/elements/SoDecimationTypeElement.h>
32 #include <Inventor/lists/SbList.h>
33 #include <Inventor/nodes/SoComplexity.h>
34 #include <Inventor/nodes/SoDrawStyle.h>
35 #include <Inventor/nodes/SoLightModel.h>
36 #include <Inventor/nodes/SoMaterialBinding.h>
37 #include <Inventor/nodes/SoNormalBinding.h>
38 #include <Inventor/nodes/SoPickStyle.h>
39 #include <Inventor/nodes/SoShapeHints.h>
40 #include <Inventor/nodes/SoTexture2.h>
41 #include <Inventor/nodes/SoTextureCoordinateBinding.h>
42 #include <Inventor/nodes/SoUnits.h>
87 typedef Response SoCallbackActionCB(
void * userdata,
91 void addPreCallback(
const SoType type, SoCallbackActionCB * cb,
void * userdata);
92 void addPostCallback(
const SoType type, SoCallbackActionCB * cb,
void * userdata);
94 void addPreTailCallback(SoCallbackActionCB * cb,
void * userdata);
95 void addPostTailCallback(SoCallbackActionCB * cb,
void * userdata);
97 void addTriangleCallback(
const SoType type, SoTriangleCB * cb,
void * userdata);
98 void addLineSegmentCallback(
const SoType type, SoLineSegmentCB * cb,
void * userdata);
99 void addPointCallback(
const SoType type, SoPointCB * cb,
void * userdata);
101 SoDecimationTypeElement::Type getDecimationType(
void)
const;
102 float getDecimationPercentage(
void)
const;
103 float getComplexity(
void)
const;
105 int32_t getNumCoordinates(
void)
const;
106 const SbVec3f & getCoordinate3(
const int index)
const;
107 const SbVec4f & getCoordinate4(
const int index)
const;
109 unsigned short getLinePattern(
void)
const;
110 float getLineWidth(
void)
const;
111 float getPointSize(
void)
const;
112 const SbName & getFontName(
void)
const;
113 float getFontSize(
void)
const;
115 const SbVec3f & getLightAttenuation(
void)
const;
118 float & shininess,
float & transparency,
119 const int index = 0)
const;
121 uint32_t getNumNormals(
void)
const;
122 const SbVec3f & getNormal(
const int index)
const;
124 int32_t getNumProfileCoordinates(
void)
const;
125 const SbVec2f & getProfileCoordinate2(
const int index)
const;
126 const SbVec3f & getProfileCoordinate3(
const int index)
const;
131 float getCreaseAngle(
void)
const;
132 int32_t getNumTextureCoordinates(
void)
const;
133 const SbVec2f & getTextureCoordinate2(
const int index)
const;
134 const SbVec3f & getTextureCoordinate3(
const int index)
const;
135 const SbVec4f & getTextureCoordinate4(
const int index)
const;
137 const SbColor & getTextureBlendColor(
void)
const;
138 const unsigned char * getTextureImage(
SbVec2s & size,
int & numcomps)
const;
139 const unsigned char * getTextureImage(
SbVec3s & size,
int & numcomps)
const;
140 const SbMatrix & getTextureMatrix(
void)
const;
145 const SbMatrix & getModelMatrix(
void)
const;
147 float getFocalDistance(
void)
const;
148 const SbMatrix & getProjectionMatrix(
void)
const;
149 const SbMatrix & getViewingMatrix(
void)
const;
153 int32_t getSwitch(
void)
const;
155 Response getCurrentResponse(
void)
const;
156 void invokePreCallbacks(
const SoNode *
const node);
157 void invokePostCallbacks(
const SoNode *
const node);
158 void invokeTriangleCallbacks(
const SoShape *
const shape,
162 void invokeLineSegmentCallbacks(
const SoShape *
const shape,
165 void invokePointCallbacks(
const SoShape *
const shape,
168 SbBool shouldGeneratePrimitives(
const SoShape * shape)
const;
171 void setCurrentNode(
SoNode *
const node);
177 void commonConstructor(
void);
178 class SoCallbackActionP * pimpl;
179 friend class SoCallbackActionP;
182 #endif // !COIN_SOCALLBACKACTION_H