00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _SO_INDEXED_POINT_SET_
00025 #define _SO_INDEXED_POINT_SET_
00026
00027 #include <Inventor/nodes/SoIndexedShape.h>
00028 #include <Inventor/SbPImpl.h>
00029
00030 SO_PIMPL_PUBLIC_DECLARATION(SoIndexedPointSet)
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00046
00047
00048
00143 class SoIndexedPointSet : public SoIndexedShape
00144 {
00145 SO_NODE_HEADER(SoIndexedPointSet);
00146 SO_PIMPL_PUBLIC_HEADER(SoIndexedPointSet)
00147
00148 public:
00149
00150
00154 SoIndexedPointSet();
00155
00156 private:
00157
00159 virtual void GLRender( SoGLRenderAction* action );
00160
00165 virtual void getBoundingBox( SoGetBoundingBoxAction* action );
00166
00168 virtual void getPrimitiveCount( SoGetPrimitiveCountAction* action );
00169
00170
00171 virtual void computeBBox( SoAction* action, SbBox3f& box, SbVec3f& center );
00172
00173 private:
00174
00176 static void initClass();
00177
00179 static void exitClass();
00180
00181
00182 virtual int getNumPrim( SoState* state = NULL );
00183
00184 private:
00185
00186
00187 virtual void generatePrimitives( SoAction* action );
00188
00189
00190 virtual void doRendering( SoGLRenderAction* action, const SoShapeStyleElement* shapeStyle );
00191
00192 virtual void callSetupIndices( SoState* state, const SoShapeStyleElement* shapeStyle, uint32_t useTexCoordsAnyway );
00193
00194
00195 virtual void shouldGenerateNormals( SoGLRenderAction* action, const SoShapeStyleElement* shapeStyle );
00196
00197
00198 virtual void shouldGenerateTangents( SoGLRenderAction* , const SoShapeStyleElement* ) {}
00199
00200
00201 virtual SbBool shouldGLRender( SoGLRenderAction* action, SbBool isPointsOrLines = FALSE );
00202
00203
00204 virtual SbBool isRenderingPointsOrLines( SoGLRenderAction* action );
00205
00206
00207 virtual SoDetail* createPointDetail( SoRayPickAction* action,
00208 const SoPrimitiveVertex* v,
00209 SoPickedPoint* pp);
00210
00212 virtual ~SoIndexedPointSet();
00213 };
00214
00215 inline SbBool
00216 SoIndexedPointSet::isRenderingPointsOrLines( SoGLRenderAction* )
00217 {
00218 return TRUE;
00219 }
00220
00221 #endif
00222
00223
00224