1 #ifndef COIN_SOCALLBACKACTION_H
2 #define COIN_SOCALLBACKACTION_H
38 #include <Inventor/actions/SoAction.h>
39 #include <Inventor/actions/SoSubAction.h>
40 #include <Inventor/elements/SoDecimationTypeElement.h>
41 #include <Inventor/lists/SbList.h>
42 #include <Inventor/nodes/SoComplexity.h>
43 #include <Inventor/nodes/SoDrawStyle.h>
44 #include <Inventor/nodes/SoLightModel.h>
45 #include <Inventor/nodes/SoMaterialBinding.h>
46 #include <Inventor/nodes/SoNormalBinding.h>
47 #include <Inventor/nodes/SoPickStyle.h>
48 #include <Inventor/nodes/SoShapeHints.h>
49 #include <Inventor/nodes/SoTexture2.h>
50 #include <Inventor/nodes/SoTextureCoordinateBinding.h>
51 #include <Inventor/nodes/SoUnits.h>
61 class SoCallbackActionP;
100 void addPreCallback(
const SoType type, SoCallbackActionCB * cb,
void * userdata);
101 void addPostCallback(
const SoType type, SoCallbackActionCB * cb,
void * userdata);
103 void addPreTailCallback(SoCallbackActionCB * cb,
void * userdata);
104 void addPostTailCallback(SoCallbackActionCB * cb,
void * userdata);
108 void addPointCallback(
const SoType type,
SoPointCB * cb,
void * userdata);
111 float getDecimationPercentage(
void)
const;
112 float getComplexity(
void)
const;
114 int32_t getNumCoordinates(
void)
const;
115 const SbVec3f & getCoordinate3(
const int index)
const;
116 const SbVec4f & getCoordinate4(
const int index)
const;
118 unsigned short getLinePattern(
void)
const;
119 float getLineWidth(
void)
const;
120 float getPointSize(
void)
const;
121 const SbName & getFontName(
void)
const;
122 float getFontSize(
void)
const;
124 const SbVec3f & getLightAttenuation(
void)
const;
127 float & shininess,
float & transparency,
128 const int index = 0)
const;
130 uint32_t getNumNormals(
void)
const;
131 const SbVec3f & getNormal(
const int index)
const;
133 int32_t getNumProfileCoordinates(
void)
const;
134 const SbVec2f & getProfileCoordinate2(
const int index)
const;
135 const SbVec3f & getProfileCoordinate3(
const int index)
const;
140 float getCreaseAngle(
void)
const;
141 int32_t getNumTextureCoordinates(
void)
const;
142 const SbVec2f & getTextureCoordinate2(
const int index)
const;
143 const SbVec3f & getTextureCoordinate3(
const int index)
const;
144 const SbVec4f & getTextureCoordinate4(
const int index)
const;
146 const SbColor & getTextureBlendColor(
void)
const;
147 const unsigned char * getTextureImage(
SbVec2s & size,
int & numcomps)
const;
148 const unsigned char * getTextureImage(
SbVec3s & size,
int & numcomps)
const;
149 const SbMatrix & getTextureMatrix(
void)
const;
154 const SbMatrix & getModelMatrix(
void)
const;
156 float getFocalDistance(
void)
const;
157 const SbMatrix & getProjectionMatrix(
void)
const;
158 const SbMatrix & getViewingMatrix(
void)
const;
162 int32_t getSwitch(
void)
const;
164 Response getCurrentResponse(
void)
const;
165 void invokePreCallbacks(
const SoNode *
const node);
166 void invokePostCallbacks(
const SoNode *
const node);
167 void invokeTriangleCallbacks(
const SoShape *
const shape,
171 void invokeLineSegmentCallbacks(
const SoShape *
const shape,
174 void invokePointCallbacks(
const SoShape *
const shape,
177 SbBool shouldGeneratePrimitives(
const SoShape * shape)
const;
180 void setCurrentNode(
SoNode *
const node);
182 void setCallbackAll(SbBool callbackall);
183 SbBool isCallbackAll(
void)
const;
189 void commonConstructor(
void);
192 SbPimplPtr<SoCallbackActionP> pimpl;
193 friend class SoCallbackActionP;
199 #endif // !COIN_SOCALLBACKACTION_H