In file contour/ActiveContour3D.h:

class AContourLine3D : public ContourLine3D

a connected component of a 3D active contour that may be opened or closed

Inheritance:


Public Fields

BoundaryCondition3D boundary [2]
the 2 boundary conditions of each line

Public Methods

double getArea () const
returns the area enclosed by the line
double getLength () const
returns the line length
double getRadius () const
returns the line radius
Vec3 getCenter () const
returns the line center
void computeMaximumRigidity () const
Computes maximum rigidity
void computeLength ()
Computes the length of a contour
void computeCenter ()
Computes the center of a contour
void computeRadius ()
Computes the radius of a contour
void addVertex (ActiveVertexContour3D *v)
add a vertex in list
ActiveVertexContourLine3DIterator firstVertex () const
returns an iterator on the list of active vertices that lies on this line
ActiveVertexContourLine3DIterator lastVertex () const
returns an iterator on the list of active vertices that lies on this line

Public

constructor
AContourLine3D (const unsigned int nbVertices, ActiveContour3D *c, ContourLine::Topology top) throw(ContourLine3D::EmptyLine)
constructor consisting in creating a given number of line vertices
AContourLine3D (ActiveContour3D *c, ContourLine::Topology top)
create a line without creating any vertices
AContourLine3D (const AContourLine3D *l, ActiveContour3D *c)
construction based on another line
AContourLine3D (const Vec3*array, const unsigned int nb, const ContourLine::Topology top, ActiveContour3D *c) throw(ContourLine3D::EmptyLine)
construction based on an array of vertices
destructor
virtual ~AContourLine3D (void)
empty destructor

Protected Fields

double length
the line length
double area
the area of the enclosed surface
Vec3 center
the center of the line
double radius
the radius of the enclosing cercle
static const double defaultForceRangeRatio
the default force range ratio

Inherited from ContourLine3D:

Public Methods

void computeEdgeDirection() const throw(IllegalGeometry)
void computeTangent() throw(IllegalGeometry)
void computeFrenetFrame() throw(IllegalGeometry)
virtual void removeLine()

Public

Exception classes

class EmptyLine: public Exception
Exception when creating a 3D contour line without any vertices
class IllegalGeometry: public Exception
Exception when two consecutive vertices have the same position which makes the definition of normal vector impossible

Constructors

ContourLine3D(Vec3*array, unsigned int nb, Contour3D *c, ContourLine::Topology top=ContourLine::OPENED) throw(EmptyLine)
constructor based on an array of 3D vertices and its topology
ContourLine3D( std::list > array, unsigned int nb, Contour3D *c, ContourLine::Topology top=ContourLine::OPENED) throw(EmptyLine)
constructor based on an array of 3D vertices and its topology
ContourLine3D(unsigned int nb, Contour3D *c, ContourLine::Topology top=ContourLine::OPENED) throw(EmptyLine)
Build a line segment only by specifying the number of vertices : the vertices are then initialized along the segment defined by (0,0,0) and (1,0,0)
ContourLine3D(const ContourLine3D *l, Contour3D *c)
Copy constructor
ContourLine3D(Contour3D *c, ContourLine::Topology top)
Build a line without any vertices

Inherited from ContourLine:

Public Classes

enum Topology

Public Methods

Contour* getContour() const
unsigned int getNbVertices() const
Topology getTopology() const
void setClosedTopology()
void setEdgePointer()
ObjectsList <VertexContour> ::iterator firstVertexContour() const
ObjectsList <VertexContour> ::iterator lastVertexContour() const
VertexContour* getFirst(void) const
VertexContour* getLast(void) const
template void applyVertex(void (MT::*fn)(void))
virtual VertexContour* createVertex()

Public

constructors

ContourLine(Contour *c, Topology t=CLOSED)
Build a line without any vertices
ContourLine(ContourLine *l)
Build a dummy line

Protected Fields

Contour* contour
Topology topology
ObjectsList <VertexContour> vertexList

Documentation

a connected component of a 3D active contour that may be opened or closed
double length
the line length

double area
the area of the enclosed surface

Vec3 center
the center of the line

double radius
the radius of the enclosing cercle

static const double defaultForceRangeRatio
the default force range ratio

BoundaryCondition3D boundary[2]
the 2 boundary conditions of each line

double getArea() const
returns the area enclosed by the line

double getLength() const
returns the line length

double getRadius() const
returns the line radius

Vec3 getCenter() const
returns the line center

void computeMaximumRigidity() const
Computes maximum rigidity

void computeLength()
Computes the length of a contour

void computeCenter()
Computes the center of a contour

void computeRadius()
Computes the radius of a contour

void addVertex(ActiveVertexContour3D *v)
add a vertex in list

constructor

AContourLine3D(const unsigned int nbVertices, ActiveContour3D *c, ContourLine::Topology top) throw(ContourLine3D::EmptyLine)
constructor consisting in creating a given number of line vertices
Parameters:
nbVertices - the number of vertices : must be greater than 0
c - the contour containing the line
top - the line topology

AContourLine3D(ActiveContour3D *c, ContourLine::Topology top)
create a line without creating any vertices
Parameters:
c - the contour containing the line
top - the line topology

AContourLine3D(const AContourLine3D *l, ActiveContour3D *c)
construction based on another line
Parameters:
l - a line that may belong to another contour
c - the contour containing the line

AContourLine3D(const Vec3*array, const unsigned int nb, const ContourLine::Topology top, ActiveContour3D *c) throw(ContourLine3D::EmptyLine)
construction based on an array of vertices
Throws:
ContourLine3D ::EmptyLine when the number of vertices is zero
Parameters:
array - an array of 3D vectors
nb - the number of items in the array
top - the line topology
c - the contour containing the line

destructor

virtual ~AContourLine3D(void)
empty destructor

ActiveVertexContourLine3DIterator firstVertex() const
returns an iterator on the list of active vertices that lies on this line

ActiveVertexContourLine3DIterator lastVertex() const
returns an iterator on the list of active vertices that lies on this line


This class has no child classes.

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