NorMIT-nav  22.09
An IGT application
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...
 
void setShowGlyph (bool val)
 
void setVisSize (double size)
 
void setOrientationArray (const char *orientationArray)
 
void setColorArray (const char *colorArray)
 
void setGlyphLUT (const char *glyphLUT)
 
void updateVtkPolyDataWithTexture ()
 

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...
 
void clipPlanesChanged ()
 

Public Member Functions

 Mesh (const QString &uid, const QString &name="", vtkPolyDataPtr polyData=vtkPolyDataPtr(), PatientModelServicePtr patientModelService=PatientModelService::getNullObject(), SpaceProviderPtr spaceProvider=SpaceProvider::getNullObject())
 
virtual ~Mesh ()
 
void setVtkPolyData (const vtkPolyDataPtr &polyData)
 
virtual vtkPolyDataPtr getVtkPolyData () const
 
virtual vtkTexturePtr getVtkTexture () 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, FileManagerServicePtr filemanager)
 
virtual QString getType () const
 
virtual QIcon getIcon ()
 
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...
 
void setUseColorFromPolydataScalars (bool on)
 
bool getUseColorFromPolydataScalars () const
 
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 getTransformedPolyDataCopy (Transform3D tranform)
 Create a new transformed polydata. More...
 
bool isFiberBundle () const
 
bool showGlyph ()
 
bool hasGlyph ()
 
double getVisSize ()
 
const char * getOrientationArray ()
 
const char * getColorArray ()
 
const char * getGlyphLUT ()
 
bool hasTexture () const
 
QString getTextureShape ()
 
QStringList getOrientationArrayList ()
 
QStringList getColorArrayList ()
 
const MeshPropertyDatagetProperties () const
 
const MeshTextureDatagetTextureData () const
 
virtual void save (const QString &basePath, FileManagerServicePtr fileManager)
 
- 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)
 
void setSoftwareAcquisitionTime (QDateTime time)
 
void setOriginalAcquisitionTime (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 TimeInfo getAdvancedTimeInfo () const
 
virtual bool isEqual (DataPtr metric)
 
virtual QString getFilename () const
 
virtual void setFilename (QString val)
 
virtual QString getSpace ()
 
virtual QString getParentSpace ()
 
virtual std::vector< Vector3DgetPointCloud () const
 
virtual CoordinateSystem getCoordinateSystem ()
 
virtual void addPersistentClipPlane (vtkPlanePtr plane)
 
virtual std::vector< vtkPlanePtrgetAllClipPlanes ()
 
virtual void clearPersistentClipPlanes ()
 
virtual void setInteractiveClipPlane (vtkPlanePtr plane)
 set a plane that is not saved More...
 
void addInteractiveClipPlane (vtkPlanePtr plane)
 
void removeInteractiveClipPlane (vtkPlanePtr plane)
 

Static Public Member Functions

static MeshPtr create (const QString &uid, const QString &name="", PatientModelServicePtr patientModelService=PatientModelService::getNullObject(), SpaceProviderPtr spaceProvider=SpaceProvider::getNullObject())
 
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
 
TimeInfo mTimeInfo
 
LandmarksPtr mLandmarks
 
REGISTRATION_STATUS mRegistrationStatus
 
RegistrationHistoryPtr m_rMd_History
 
std::vector< vtkPlanePtrmPersistentClipPlanes
 
std::vector< vtkPlanePtrmInteractiveClipPlanes
 
vtkPlanePtr mInteractiveClipPlane
 

Detailed Description

A mesh data set.

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

Definition at line 45 of file cxMesh.h.

Constructor & Destructor Documentation

◆ Mesh()

cx::Mesh::Mesh ( const QString &  uid,
const QString &  name = "",
vtkPolyDataPtr  polyData = vtkPolyDataPtr(),
PatientModelServicePtr  patientModelService = PatientModelService::getNullObject(),
SpaceProviderPtr  spaceProvider = SpaceProvider::getNullObject() 
)

Definition at line 49 of file cxMesh.cpp.

◆ ~Mesh()

cx::Mesh::~Mesh ( )
virtual

Definition at line 62 of file cxMesh.cpp.

Member Function Documentation

◆ addXml()

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

adds xml information about the image and its variabels

Reimplemented from cx::Data.

Definition at line 140 of file cxMesh.cpp.

◆ boundingBox()

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

Implements cx::Data.

Definition at line 406 of file cxMesh.cpp.

◆ create()

MeshPtr cx::Mesh::create ( const QString &  uid,
const QString &  name = "",
PatientModelServicePtr  patientModelService = PatientModelService::getNullObject(),
SpaceProviderPtr  spaceProvider = SpaceProvider::getNullObject() 
)
static

Definition at line 44 of file cxMesh.cpp.

◆ getBackfaceCulling()

bool cx::Mesh::getBackfaceCulling ( )

Get backface culling.

Definition at line 210 of file cxMesh.cpp.

◆ getColor()

QColor cx::Mesh::getColor ( )

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

Definition at line 190 of file cxMesh.cpp.

◆ getColorArray()

const char * cx::Mesh::getColorArray ( )

Definition at line 276 of file cxMesh.cpp.

◆ getColorArrayList()

QStringList cx::Mesh::getColorArrayList ( )

Definition at line 391 of file cxMesh.cpp.

◆ getFrontfaceCulling()

bool cx::Mesh::getFrontfaceCulling ( )

Get frontface culling.

Definition at line 221 of file cxMesh.cpp.

◆ getGlyphLUT()

const char * cx::Mesh::getGlyphLUT ( )

Definition at line 287 of file cxMesh.cpp.

◆ getIcon()

virtual QIcon cx::Mesh::getIcon ( )
inlinevirtual

Reimplemented from cx::Data.

Definition at line 71 of file cxMesh.h.

◆ getIsWireframe()

bool cx::Mesh::getIsWireframe ( ) const

true=wireframe, false=surface

Definition at line 74 of file cxMesh.cpp.

◆ getOrientationArray()

const char * cx::Mesh::getOrientationArray ( )

Definition at line 255 of file cxMesh.cpp.

◆ getOrientationArrayList()

QStringList cx::Mesh::getOrientationArrayList ( )

Definition at line 386 of file cxMesh.cpp.

◆ getProperties()

const MeshPropertyData & cx::Mesh::getProperties ( ) const

Definition at line 396 of file cxMesh.cpp.

◆ getTextureData()

const MeshTextureData & cx::Mesh::getTextureData ( ) const

Definition at line 401 of file cxMesh.cpp.

◆ getTextureShape()

QString cx::Mesh::getTextureShape ( )

Definition at line 292 of file cxMesh.cpp.

◆ getTransformedPolyDataCopy()

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

Create a new transformed polydata.

Definition at line 413 of file cxMesh.cpp.

◆ getType()

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

Reimplemented from cx::Data.

Definition at line 63 of file cxMesh.h.

◆ getTypeName()

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

Definition at line 67 of file cxMesh.h.

◆ getUseColorFromPolydataScalars()

bool cx::Mesh::getUseColorFromPolydataScalars ( ) const

Definition at line 200 of file cxMesh.cpp.

◆ getVisSize()

double cx::Mesh::getVisSize ( )

Definition at line 266 of file cxMesh.cpp.

◆ getVtkPolyData()

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

Definition at line 130 of file cxMesh.cpp.

◆ getVtkTexture()

vtkTexturePtr cx::Mesh::getVtkTexture ( ) const
virtual

Definition at line 135 of file cxMesh.cpp.

◆ hasGlyph()

bool cx::Mesh::hasGlyph ( )

Definition at line 232 of file cxMesh.cpp.

◆ hasTexture()

bool cx::Mesh::hasTexture ( ) const

Definition at line 303 of file cxMesh.cpp.

◆ isFiberBundle()

bool cx::Mesh::isFiberBundle ( ) const

Definition at line 442 of file cxMesh.cpp.

◆ load()

bool cx::Mesh::load ( QString  path,
FileManagerServicePtr  filemanager 
)
virtual

Implements cx::Data.

Definition at line 79 of file cxMesh.cpp.

◆ meshChanged

void cx::Mesh::meshChanged ( )
signal

◆ parseXml()

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 160 of file cxMesh.cpp.

◆ save()

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

Implements cx::Data.

Definition at line 448 of file cxMesh.cpp.

◆ setBackfaceCullingSlot

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

Set backface culling on/off in mesh visualization.

Definition at line 205 of file cxMesh.cpp.

◆ setColor()

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

Set the color of the mesh.

Definition at line 185 of file cxMesh.cpp.

◆ setColorArray

void cx::Mesh::setColorArray ( const char *  colorArray)
slot

Definition at line 281 of file cxMesh.cpp.

◆ setFrontfaceCullingSlot

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

Set frontface culling on/off in mesh visualization.

Definition at line 215 of file cxMesh.cpp.

◆ setGlyphLUT

void cx::Mesh::setGlyphLUT ( const char *  glyphLUT)
slot

Definition at line 297 of file cxMesh.cpp.

◆ setIsWireframe()

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

Set rep to wireframe, false means surface.

Definition at line 66 of file cxMesh.cpp.

◆ setOrientationArray

void cx::Mesh::setOrientationArray ( const char *  orientationArray)
slot

Definition at line 260 of file cxMesh.cpp.

◆ setShowGlyph

void cx::Mesh::setShowGlyph ( bool  val)
slot

Definition at line 226 of file cxMesh.cpp.

◆ setUseColorFromPolydataScalars()

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

Definition at line 195 of file cxMesh.cpp.

◆ setVisSize

void cx::Mesh::setVisSize ( double  size)
slot

Definition at line 271 of file cxMesh.cpp.

◆ setVtkPolyData()

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

Definition at line 92 of file cxMesh.cpp.

◆ showGlyph()

bool cx::Mesh::showGlyph ( )

Definition at line 237 of file cxMesh.cpp.

◆ updateVtkPolyDataWithTexture

void cx::Mesh::updateVtkPolyDataWithTexture ( )
slot

Definition at line 311 of file cxMesh.cpp.


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