Developer documentation | Axl-2.5.1

axlShape Class Reference

#include <axlShape.h>

Inheritance diagram for axlShape:
axlAbstractData

Classes

struct  Edge
 The edge structure. More...
 
struct  Face
 The Face structure. More...
 
struct  Loop
 The Loop structure. More...
 

Public Member Functions

 axlShape (int vertexCount, int edgeCount, int faceCount, axlShape *parent=0)
 
virtual ~axlShape (void)
 
QVector< axlPoint * > getVertices (void) const
 
QVector< Edge * > getEdges (void) const
 
QVector< Face * > getFaces (void) const
 
int getVertexCount (void) const
 
int getEdgeCount (void) const
 
int getFaceCount (void) const
 
virtual QString description (void) const
 
virtual QString identifier (void) const
 
void insert_vertex (axlPoint *vertex, int index)
 
void insert_edge (Edge *edge, int index)
 
void insert_edge (axlAbstractCurveParametric *crv, int si, int ei, int index)
 
void sortEdges (Loop *loop)
 Sort edges. More...
 
void sortLoops (Face *face)
 Sort loops. More...
 
void insert_face (Face *face, int index)
 
void insert_face (axlAbstractSurfaceParametric *surf, int *l, int *orient, int *loopsSize, int sizel, int nbLoops, int index)
 
void insert_face (axlAbstractSurfaceParametric *surf, int *l, int *orient, int sizel, int sizeOrient, int index)
 
void insert_face_with_no_sort (axlAbstractSurfaceParametric *surf, int *l, int *orient, int sizel, int sizeOrient, int index)
 
void insert_face_with_no_sort (axlAbstractSurfaceParametric *surf, int *l, int *orient, int *loopsSize, int sizel, int nbLoops, int index)
 
QVariantList convertDataToQVariant (void) const
 
int convertQVariantToData (const QVariantList &data)
 
- Public Member Functions inherited from axlAbstractData
 axlAbstractData (axlAbstractData *parent=NULL)
 
 axlAbstractData (const axlAbstractData &data)
 
virtual ~axlAbstractData (void)
 
const QColor & color (void) const
 
const double & opacity (void) const
 
const double & size (void) const
 
const QString & shader (void) const
 
const bool & editable (void)
 
const bool & updateView (void)
 
void setColor (double r, double g, double b)
 
void addField (axlAbstractField *field)
 Add a field to the field list of the object. More...
 
bool updateFieldList (QString nameField)
 Check if a field with the same name is already applied on the object. More...
 
QString changeFieldName (QString fieldName)
 
axlMeshmesh (void)
 Return the mesh of that object is computed. More...
 
void setMesh (axlMesh *mesh)
 Set a corresponding mesh for that object. More...
 
void setUpdateView (bool updateView)
 
QList< axlAbstractField * > fields (void)
 

Additional Inherited Members

- Public Slots inherited from axlAbstractData
void touchGeometry (void)
 
void touchProperty (void)
 
void touchStructure (void)
 
virtual void touchField (void)
 
void setColor (const QColor &color)
 
void setOpacity (const double &opacity)
 
void setSize (const double &size)
 
void setShader (const QString &shader)
 
void setEditable (bool edit)
 
- Signals inherited from axlAbstractData
void modifiedGeometry (void)
 
void modifiedStructure (void)
 
void modifiedField (void)
 
void modifiedProperty (void)
 
- Properties inherited from axlAbstractData
QColor color
 
double opacity
 
double size
 
QString shader
 

Detailed Description

Definition at line 31 of file axlShape.h.

Constructor & Destructor Documentation

axlShape::axlShape ( int  vertexCount,
int  edgeCount,
int  faceCount,
axlShape parent = 0 
)

Construct an axlShape with the corresponding number of vertices, edges and faces.

The default values for the pointers is NULL.

Definition at line 45 of file axlShape.cpp.

axlShape::~axlShape ( void  )
virtual

Destructor

Definition at line 60 of file axlShape.cpp.

Member Function Documentation

QVariantList axlShape::convertDataToQVariant ( void  ) const
virtual

Convert an axlShape into a QVariantList. Useful for RPC protocol.

Reimplemented from axlAbstractData.

Definition at line 314 of file axlShape.cpp.

int axlShape::convertQVariantToData ( const QVariantList &  data)
virtual

Convert a QVariantList into an axlShape. Useful for RPC protocol.

Reimplemented from axlAbstractData.

Definition at line 349 of file axlShape.cpp.

QString axlShape::description ( void  ) const
virtual

Describe the object.

Definition at line 89 of file axlShape.cpp.

int axlShape::getEdgeCount ( void  ) const

Get the number of edges.

Definition at line 81 of file axlShape.cpp.

QVector< axlShape::Edge * > axlShape::getEdges ( void  ) const

Get the vector of edges.

Definition at line 69 of file axlShape.cpp.

int axlShape::getFaceCount ( void  ) const

Get the number of faces.

Definition at line 85 of file axlShape.cpp.

QVector< axlShape::Face * > axlShape::getFaces ( void  ) const

Get the vector of faces.

Definition at line 73 of file axlShape.cpp.

int axlShape::getVertexCount ( void  ) const

Get the number of vertices.

Definition at line 77 of file axlShape.cpp.

QVector< axlPoint * > axlShape::getVertices ( void  ) const

Get the vector of vertices.

Definition at line 65 of file axlShape.cpp.

QString axlShape::identifier ( void  ) const
virtual

Identify the object

Definition at line 130 of file axlShape.cpp.

void axlShape::insert_edge ( Edge edge,
int  index 
)

Insert edge at the index position. The number of allocated edges should be stricktly bigger than the index.

Definition at line 138 of file axlShape.cpp.

void axlShape::insert_edge ( axlAbstractCurveParametric crv,
int  si,
int  ei,
int  index 
)

Definition at line 142 of file axlShape.cpp.

void axlShape::insert_face ( Face face,
int  index 
)

Insert face at the index position. The number of allocated faces should be stricktly bigger than the index.

Definition at line 308 of file axlShape.cpp.

void axlShape::insert_face ( axlAbstractSurfaceParametric surf,
int *  l,
int *  orient,
int *  loopsSize,
int  sizel,
int  nbLoops,
int  index 
)

Definition at line 238 of file axlShape.cpp.

void axlShape::insert_face ( axlAbstractSurfaceParametric surf,
int *  l,
int *  orient,
int  sizel,
int  sizeOrient,
int  index 
)

Definition at line 279 of file axlShape.cpp.

void axlShape::insert_face_with_no_sort ( axlAbstractSurfaceParametric surf,
int *  l,
int *  orient,
int  sizel,
int  sizeOrient,
int  index 
)

Definition at line 294 of file axlShape.cpp.

void axlShape::insert_face_with_no_sort ( axlAbstractSurfaceParametric surf,
int *  l,
int *  orient,
int *  loopsSize,
int  sizel,
int  nbLoops,
int  index 
)

Definition at line 259 of file axlShape.cpp.

void axlShape::insert_vertex ( axlPoint vertex,
int  index 
)

Insert vertex at index position. The number of allocated vertices should be stricktly bigger than the index.

Definition at line 134 of file axlShape.cpp.

void axlShape::sortEdges ( Loop loop)

Sort edges.

Edges among a loop are not ordered. This function sort them to be adjacent.

Parameters
loopthe loop to sort

Definition at line 147 of file axlShape.cpp.

void axlShape::sortLoops ( Face face)

Sort loops.

Edges among a loop are not ordered. This function sort every loop the face contains.

Parameters
facethe face that contains loops to sort

Definition at line 232 of file axlShape.cpp.


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