MeshGui::SoFCMeshSegmentShape Class Reference

#include <SoFCMeshObject.h>

List of all members.

Public Member Functions

 SoFCMeshSegmentShape ()

Static Public Member Functions

static void initClass ()

Public Attributes

SoSFUInt32 index
unsigned int renderTriangleLimit

Protected Member Functions

virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 Sets the bounding box of the mesh to box and its center to center.
virtual void generatePrimitives (SoAction *action)
 Sets the point indices, the geometric points and the normal for each triangle.
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
 Adds the number of the triangles to the SoGetPrimitiveCountAction.
virtual void GLRender (SoGLRenderAction *action)
 Either renders the complete mesh or only a subset of the points.

Detailed Description

Definition at line 217 of file SoFCMeshObject.h.


Constructor & Destructor Documentation

SoFCMeshSegmentShape::SoFCMeshSegmentShape (  ) 

Definition at line 1139 of file SoFCMeshObject.cpp.


Member Function Documentation

void SoFCMeshSegmentShape::computeBBox ( SoAction *  action,
SbBox3f &  box,
SbVec3f &  center 
) [protected, virtual]
void SoFCMeshSegmentShape::generatePrimitives ( SoAction *  action  )  [protected, virtual]

Sets the point indices, the geometric points and the normal for each triangle.

If the number of triangles exceeds renderTriangleLimit then only a triangulation of a rough model is filled in instead. This is due to performance issues.

See also:
createTriangleDetail().

Definition at line 1401 of file SoFCMeshObject.cpp.

References MeshCore::MeshFacet::_aulPoints, Base::Console(), Mesh::MeshObject::countSegments(), MeshGui::SoFCMeshObjectElement::get(), MeshCore::MeshKernel::GetFacets(), importOBJ::getIndices(), Mesh::MeshObject::getKernel(), MeshCore::MeshKernel::GetPoints(), Mesh::MeshObject::getSegment(), sbvec3f(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.

void SoFCMeshSegmentShape::getPrimitiveCount ( SoGetPrimitiveCountAction *  action  )  [protected, virtual]

Adds the number of the triangles to the SoGetPrimitiveCountAction.

Definition at line 1522 of file SoFCMeshObject.cpp.

References Mesh::MeshObject::countSegments(), MeshGui::SoFCMeshObjectElement::get(), Mesh::Segment::getIndices(), and Mesh::MeshObject::getSegment().

void SoFCMeshSegmentShape::GLRender ( SoGLRenderAction *  action  )  [protected, virtual]

Either renders the complete mesh or only a subset of the points.

Definition at line 1148 of file SoFCMeshObject.cpp.

References Mesh::MeshObject::countFacets(), MeshGui::SoFCMeshObjectElement::get(), Gui::SoFCInteractiveElement::get(), and renderTriangleLimit.

void SoFCMeshSegmentShape::initClass ( void   )  [static]

Definition at line 1134 of file SoFCMeshObject.cpp.

Referenced by initMeshGui().


Member Data Documentation

Definition at line 226 of file SoFCMeshObject.h.

Definition at line 227 of file SoFCMeshObject.h.

Referenced by GLRender().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:27 2011 for FreeCAD by  doxygen 1.6.1