CustusX  15.8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::Mesh Class Reference

A mesh data set. More...

#include <cxMesh.h>

Inheritance diagram for cx::Mesh:
cx::Data

Public Slots

void setBackfaceCullingSlot (bool backfaceCulling)
 Set backface culling on/off in mesh visualization. More...
 
void setFrontfaceCullingSlot (bool backfaceCulling)
 Set frontface culling on/off in mesh visualization. More...
 

Signals

void meshChanged ()
 
- Signals inherited from cx::Data
void transformChanged ()
 emitted when transform is changed More...
 
void propertiesChanged ()
 emitted when one of the metadata properties (uid, name etc) changes More...
 

Public Member Functions

 Mesh (const QString &uid, const QString &name="")
 
 Mesh (const QString &uid, const QString &name, const vtkPolyDataPtr &polyData)
 
virtual ~Mesh ()
 
void setVtkPolyData (const vtkPolyDataPtr &polyData)
 
virtual vtkPolyDataPtr getVtkPolyData () const
 
void addXml (QDomNode &dataNode)
 adds xml information about the image and its variabels More...
 
virtual void parseXml (QDomNode &dataNode)
 Use a XML node to load data. More...
 
virtual bool load (QString path)
 
virtual QString getType () const
 
virtual DoubleBoundingBox3D boundingBox () const
 
void setColor (const QColor &color)
 Set the color of the mesh. More...
 
QColor getColor ()
 Get the color of the mesh (Values are range 0 - 255) More...
 
bool getBackfaceCulling ()
 Get backface culling. More...
 
bool getFrontfaceCulling ()
 Get frontface culling. More...
 
void setIsWireframe (bool on)
 Set rep to wireframe, false means surface. More...
 
bool getIsWireframe () const
 true=wireframe, false=surface More...
 
vtkPolyDataPtr getTransformedPolyData (Transform3D tranform)
 Create a new transformed polydata. More...
 
bool isFiberBundle () const
 
virtual void save (const QString &basePath)
 
- Public Member Functions inherited from cx::Data
 Data (const QString &uid, const QString &name="")
 
virtual ~Data ()
 
void setUid (const QString &uid)
 
void setName (const QString &name)
 
void setAcquisitionTime (QDateTime time)
 
virtual RegistrationHistoryPtr get_rMd_History ()
 
LandmarksPtr getLandmarks ()
 
virtual QString getUid () const
 
virtual QString getName () const
 
virtual Transform3D get_rMd () const
 
virtual QDateTime getAcquisitionTime () const
 
virtual QString getFilename () const
 
virtual void setFilename (QString val)
 
virtual QString getSpace ()
 
virtual QString getParentSpace ()
 
virtual CoordinateSystem getCoordinateSystem ()
 

Static Public Member Functions

static MeshPtr create (const QString &uid, const QString &name="")
 
static QString getTypeName ()
 

Additional Inherited Members

- Protected Slots inherited from cx::Data
virtual void transformChangedSlot ()
 
- Protected Attributes inherited from cx::Data
QString mUid
 
QString mName
 
QString mFilename
 
QDateTime mAcquisitionTime
 
LandmarksPtr mLandmarks
 
REGISTRATION_STATUS mRegistrationStatus
 
RegistrationHistoryPtr m_rMd_History
 

Detailed Description

A mesh data set.

A mesh is implemented as a vtkPolyData, and thus can represent whatever that class can.

Definition at line 61 of file cxMesh.h.

Constructor & Destructor Documentation

cx::Mesh::Mesh ( const QString &  uid,
const QString &  name = "" 
)

Definition at line 55 of file cxMesh.cpp.

cx::Mesh::Mesh ( const QString &  uid,
const QString &  name,
const vtkPolyDataPtr polyData 
)

Definition at line 61 of file cxMesh.cpp.

cx::Mesh::~Mesh ( )
virtual

Definition at line 67 of file cxMesh.cpp.

Member Function Documentation

void cx::Mesh::addXml ( QDomNode &  dataNode)
virtual

adds xml information about the image and its variabels

Reimplemented from cx::Data.

Definition at line 103 of file cxMesh.cpp.

DoubleBoundingBox3D cx::Mesh::boundingBox ( ) const
virtual

Implements cx::Data.

Definition at line 214 of file cxMesh.cpp.

MeshPtr cx::Mesh::create ( const QString &  uid,
const QString &  name = "" 
)
static

Definition at line 50 of file cxMesh.cpp.

bool cx::Mesh::getBackfaceCulling ( )

Get backface culling.

Definition at line 198 of file cxMesh.cpp.

QColor cx::Mesh::getColor ( )

Get the color of the mesh (Values are range 0 - 255)

Definition at line 187 of file cxMesh.cpp.

bool cx::Mesh::getFrontfaceCulling ( )

Get frontface culling.

Definition at line 209 of file cxMesh.cpp.

bool cx::Mesh::getIsWireframe ( ) const

true=wireframe, false=surface

Definition at line 76 of file cxMesh.cpp.

vtkPolyDataPtr cx::Mesh::getTransformedPolyData ( Transform3D  tranform)

Create a new transformed polydata.

Definition at line 221 of file cxMesh.cpp.

virtual QString cx::Mesh::getType ( ) const
inlinevirtual

Reimplemented from cx::Data.

Definition at line 77 of file cxMesh.h.

static QString cx::Mesh::getTypeName ( )
inlinestatic

Definition at line 81 of file cxMesh.h.

vtkPolyDataPtr cx::Mesh::getVtkPolyData ( ) const
virtual

Definition at line 99 of file cxMesh.cpp.

bool cx::Mesh::isFiberBundle ( ) const

Definition at line 248 of file cxMesh.cpp.

bool cx::Mesh::load ( QString  path)
virtual

Implements cx::Data.

Definition at line 81 of file cxMesh.cpp.

void cx::Mesh::meshChanged ( )
signal
void cx::Mesh::parseXml ( QDomNode &  dataNode)
virtual

Use a XML node to load data.

Parameters
dataNodeA XML data representation of this object.

Reimplemented from cx::Data.

Definition at line 132 of file cxMesh.cpp.

void cx::Mesh::save ( const QString &  basePath)
virtual

Implements cx::Data.

Definition at line 254 of file cxMesh.cpp.

void cx::Mesh::setBackfaceCullingSlot ( bool  backfaceCulling)
slot

Set backface culling on/off in mesh visualization.

Definition at line 192 of file cxMesh.cpp.

void cx::Mesh::setColor ( const QColor &  color)

Set the color of the mesh.

Definition at line 181 of file cxMesh.cpp.

void cx::Mesh::setFrontfaceCullingSlot ( bool  backfaceCulling)
slot

Set frontface culling on/off in mesh visualization.

Definition at line 203 of file cxMesh.cpp.

void cx::Mesh::setIsWireframe ( bool  on)

Set rep to wireframe, false means surface.

Definition at line 71 of file cxMesh.cpp.

void cx::Mesh::setVtkPolyData ( const vtkPolyDataPtr polyData)

Definition at line 94 of file cxMesh.cpp.


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