a two-dimensional contour that only includes geometric information
![]() | EdgeGridIntersection Class defining the intersection of an edge with a grid
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | EdgeGridPixel : public ListElement<EdgeGridPixel> Class defining an edge in a grid pixel : the edge corresponds to the intersection of the contour with the rows and columns of a grid
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | GridPixel Class defining a grid Pixel that encloses a list of edges
|
![]() | 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 VertexContour2D pointing on the contour |
![]() | firstLine (void) const returns a line Iterator of type ContourLine2D on first line |
![]() | lastLine (void) const returns a line Iterator of type ContourLine2D on last line |
![]() | getPixelTable () returns the built pixel table for detecting contour intersection |
![]() | computeCenter () const updates and returns the center of the 2D contour but without updating the contour center private member |
![]() | updateCenter (Vec2 updates the center position of the 2D contour |
![]() | updateRadius (const Vec2 Given a 2D point, returns the smallest sphere radius enclosing the 2D contour @aparam center give the sphere center |
![]() | translate (const Vec2 translate a 2D contour |
![]() | scale (const double scale) scale a 2D contour |
![]() | rotate (const Rotation2D &rotation) rotate a 2D contour around its center |
![]() | translateLine (const Vec2 translate a 2D contour |
![]() | scaleLine (const double scale) scale a 2D contour |
![]() | rotateLine (const Rotation2D &rotation) rotate a 2D contour around its center |
![]() | computeBoundingBox (double &minx, double &maxx, double &miny, double &minz) const computes the bounding box enclosing the 2D contour |
![]() | createLine (ContourLine::Topology top) create a new line : use a virtual function in order to create inherited lines |
![]() | buildGridIntersection (double distance) build the hash table of the contour intersection with a grid of size |
![]() | removeGridIntersectionInformation (void) free all data structure associated with the intersection hash table |
![]() | addContour (const Contour2D *contour) add in the current contour a copy of another contour |
![]() | readModule (GFInput &input) throw(ContourLine2D::EmptyLine) reads the geometric description of the 2D contour |
![]() | skipModule (GFInput &input) skips the geometric description of the 2D contour |
![]() | writeModule (GFOutput &output) writes the geometric description of the 2D contour |
![]() | computeTangent () Computes the tangent vector for each vertex |
![]() | saveAsMapleFile (const char *name) save the contour geometry as a list of list of pair of points |
![]() | getTclInterface () const returns the Tcl interface (usually a TclContour2D) associated with a 2D contour |
![]() | getSelectedVertex () const returns the selected vertex |
![]() | getSelectedLine () const returns the selected vertex |
![]() | updateBoundingBox () recompute the bounding box geometry |
![]() | redraw (Camera2D *cam) redraw a 2D contour in a camera |
![]() | drawLine (Camera2D *c, TclCamera2D *cam, ContourLine2D *l) draw a line of a contour in a given a camera |
![]() | computeClosestDistance (DataTypes::MouseClick& mc) const returns the distance between a mouse position and a given contour |
![]() | selectLine (const Vec2 select the contour line closest from a given position and set the selectedLine variable |
![]() | moveVertex (const Vec2 move the selected vertex at a given position select |
![]() | addVertex (const Vec2 create a new vertex at the pizel position and insert it at the end of the selected line |
![]() | insertVertex (const Vec2 create a new vertex at the pixel position and insert it near the closest vertex of the selected line |
![]() | setSelectedLine (ContourLine2D *l) set the selected contour line |
![]() | setSelectedVertex (VertexContour2D *v) set the selected vertex |
![]() | selectVertex (const Vec2 select the contour vertex closest from a given position and set the selectedVertex variable |
![]() | selectObject (const Vec2 a function that allows to perform a task on a data object from a mouse click |
![]() | Constructors
| ||||||||
![]() | Destructor
|
![]() | edgeIntersectionList the list of grid intersections |
![]() | pixelTable the hash table where the key is the index of the pixel (ie col + ncols*row) and the item is a pointer to a GridPixel object |
![]() | 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 two-dimensional contour that only includes geometric information. Topological operators can be applied on this type of contours.
Vec2
IntersectionType type
VertexContour2D* previousVertex
Vec2
VertexContour2D* getPreviousVertex() const
Constructors
EdgeGridIntersection(IntersectionType t, Vec2
pos - the position of the intersection
v - defines the edge of the Contour2D that created the intersection Destructor
EdgeGridIntersection* edgeIntersection
Constructors
GridPixelVertex(VertexContour2D *v)
GridPixelVertex(EdgeGridIntersection *e)
GridPixelVertex()
GridPixelVertex(GridPixelVertex &iv)
Destructor
void setVertex(VertexContour2D *v)
void setEdgeIntersection(EdgeGridIntersection *e)
VertexContour2D* getVertex() const
EdgeGridIntersection* getEdgeIntersection() const
Vec2
ContourLine* getLine() const
GridPixelVertex vertex[2]
Constructors
Destructor
bool isValid() const
Vec2
VertexContour2D* getVertex(unsigned int i) const
EdgeGridIntersection* getEdgeIntersection(unsigned int i) const
const int row
const int col
Constructors
Destructor
int getRowIndex() const
int getColumnIndex() const
unsigned int getNbEdges() const
ObjectsList <EdgeGridPixel> ::iterator firstEdge()
ObjectsList <EdgeGridPixel> ::iterator lastEdge()
std::list <EdgeGridIntersection *> edgeIntersectionList
std::map
void initFormat()
void read(TclString filename)
void write(TclString filename)
Constructors
Contour2D(const TclString filename, Scene2D *scene=NULL)
scene - the 2D scene where the contour should be inserted. If the
scene is NULL then the first exisiting scene is chosen Contour2D(Scene2D *scene=NULL)
Contour2D(const Contour2D *_contour)
Contour2D(const unsigned int nbLines, const unsigned int *nbVertices, Vec2
nbVertices - an array describing the number of vertices for each line
array - a 2D array describing the vertex position for each line :
array[i][j] gives the position of the jth vertex of the ith line
top - a 2D array describing the topology (closed or open) for
each line
scene - the 2D scene where the contour should be inserted. If the
scene is NULL then the first exisiting scene is chosen Destructor
VertexContour2DIterator firstVertex() const
Line2DIterator firstLine(void) const
Line2DIterator lastLine(void) const
std::map
Vec2
void updateCenter(Vec2
n - a integer that is set to the total number of contour vertices : it does not need to be initialized double updateRadius(const Vec2
virtual void translate(const Vec2
virtual void scale(const double scale)
virtual void rotate(const Rotation2D &rotation)
virtual void translateLine(const Vec2
virtual void scaleLine(const double scale)
virtual void rotateLine(const Rotation2D &rotation)
void computeBoundingBox(double &minx, double &maxx, double &miny, double &minz) const
maxx - the maximum x coordinates (its initial value is irrelevant)
miny - the minimum y coordinates (its initial value is irrelevant)
maxy - the maximum y coordinates (its initial value is irrelevant) virtual ContourLine* createLine(ContourLine::Topology top)
void buildGridIntersection(double distance)
void removeGridIntersectionInformation(void)
void addContour(const Contour2D *contour)
void readModule(GFInput &input) throw(ContourLine2D::EmptyLine)
void skipModule(GFInput &input)
void writeModule(GFOutput &output)
void computeTangent()
void saveAsMapleFile(const char *name)
TclObject* getTclInterface() const
VertexContour2D* selectedVertex
ContourLine2D* selectedLine
VertexContour2D* getSelectedVertex() const
ContourLine2D* getSelectedLine() const
void updateBoundingBox()
virtual void redraw(Camera2D *cam)
void drawLine(Camera2D *c, TclCamera2D *cam, ContourLine2D *l)
double computeClosestDistance(DataTypes::MouseClick& mc) const
virtual void selectLine(const Vec2
cam - a 2D camera virtual void moveVertex(const Vec2
cam - a 2D camera virtual void addVertex(const Vec2
cam - a 2D camera virtual void insertVertex(const Vec2
cam - a 2D camera void setSelectedLine(ContourLine2D *l)
void setSelectedVertex(VertexContour2D *v)
virtual void selectVertex(const Vec2
cam - a 2D camera virtual void selectObject(const Vec2
cam - the camera *from which the object is selected
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