a three-dimensional contour that only includes geometric information
![]() | read (TclString filename) call the read function associated with the General Format Library |
![]() | write (TclString filename) call the write function associated with the General Format Library |
![]() | firstVertex () const returns a VertexIterator of type VertexContour3D pointing on the contour |
![]() | firstLine (void) const returns a line Iterator of type ContourLine2D on the first item |
![]() | lastLine (void) const returns a line Iterator of type ContourLine2D on the last item |
![]() | computeCenter () const updates and returns the center of the 3D contour but without updating the contour center private member |
![]() | updateCenter (Vec3 updates the center position of the 3D contour |
![]() | updateRadius (const Vec3 Given a 3D point, returns the smallest sphere radius enclosing the 3D contour @aparam center give the sphere center |
![]() | translate (const Vec3 translate a 3D contour |
![]() | scale (const double scale) scale a 3D contour |
![]() | rotate (const Rotation3D &rotation) rotate a 3D contour around its center |
![]() | readModule (GFInput &input) reads the geometric description of the 3D contour |
![]() | skipModule (GFInput &input) skips the geometric description of the 3D contour |
![]() | writeModule (GFOutput &output) writes the geometric description of the 3D contour |
![]() | addContour (const Contour3D *contour) add in the current contour a copy of another contour |
![]() | createLine (ContourLine::Topology top) create a new line : use a virtual function in order to create inherited lines |
![]() | updateBoundingBox () recompute the bounding box geometry |
![]() | redraw (Camera3D *cam) redraw a 3D contour in a camera |
![]() | computeClosestDistance (DataTypes::MouseClick &mc) const returns the distance between a mouse position and a given contour |
![]() | selectVertex (const Vec2 select the contour vertex closest from a given position and set the selectedVertex variable |
![]() | selectLine (const Vec2 select the contour line closest from a given position and set the selectedLine variable |
![]() | selectObject (const Vec2 a function that allows to perform a task on a data object from a mouse click |
![]() | getSelectedVertex () const returns the selected Vertex |
![]() | setSelectedLine (ContourLine3D *l) set the selected contour line |
![]() | setSelectedVertex (VertexContour3D *v) set the selected vertex |
![]() | getSelectedLine () const returns the selected vertex |
![]() | Exception classes
| ||||||||
![]() | Constructors
| ||||||||
![]() | Destructor
|
![]() | selectedVertex the selected vertex |
![]() | selectedLine the selected line |
![]() | initGeometry () function for updating geometric parameters when the geometry has been updated |
![]() | initFormat () the function creating the module for General Format I/O |
constructor
destructor
a three-dimensional contour that only includes geometric information. Topological operators can be applied on this type of contours.
void initFormat()
void read(TclString filename)
void write(TclString filename)
Constructors
Contour3D(const TclString filename, Scene3D *scene=NULL)
scene - the 3D scene where the contour should be inserted. If the
scene is NULL then the first exisiting scene is chosen Contour3D(const Contour3D *_contour)
Contour3D(Scene3D *scene=NULL)
Contour3D(const unsigned int nbLines, std::list
nbVertices - a vector describing the number of vertices for each line
array - a 3D vector describing the vertex position for each line :
array[i][j] gives the position of the jth vertex of the ith line
top - a 3D vector describing the topology (closed or open) for
each line
scene - the 3D scene where the contour should be inserted. If the
scene is NULL then the first exisiting scene is chosen Destructor
VertexContour3DIterator firstVertex() const
Line3DIterator firstLine(void) const
Line3DIterator lastLine(void) const
Vec3
void updateCenter(Vec3
n - a integer that is set to the total number of contour vertices : it does not need to be initialized double updateRadius(const Vec3
void translate(const Vec3
void scale(const double scale)
void rotate(const Rotation3D &rotation)
void readModule(GFInput &input)
void skipModule(GFInput &input)
void writeModule(GFOutput &output)
void addContour(const Contour3D *contour)
virtual ContourLine* createLine(ContourLine::Topology top)
VertexContour3D* selectedVertex
ContourLine3D* selectedLine
void updateBoundingBox()
void redraw(Camera3D *cam)
double computeClosestDistance(DataTypes::MouseClick &mc) const
void selectVertex(const Vec2
cam - a 3D camera void selectLine(const Vec2
cam - a 3D camera virtual void selectObject(const Vec2
cam - the camera *from which the object is selected VertexContour3D* getSelectedVertex() const
void setSelectedLine(ContourLine3D *l)
void setSelectedVertex(VertexContour3D *v)
ContourLine3D* getSelectedLine() const
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de