Fraxinus
17.12-rc2
An IGT application
|
A mesh data set. More...
#include <cxMesh.h>
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) |
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 MeshPropertyData & | getProperties () const |
const MeshTextureData & | getTextureData () 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) |
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< Vector3D > | getPointCloud () const |
virtual CoordinateSystem | getCoordinateSystem () |
virtual void | addPersistentClipPlane (vtkPlanePtr plane) |
virtual std::vector< vtkPlanePtr > | getAllClipPlanes () |
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< vtkPlanePtr > | mPersistentClipPlanes |
std::vector< vtkPlanePtr > | mInteractiveClipPlanes |
vtkPlanePtr | mInteractiveClipPlane |
A mesh data set.
A mesh is implemented as a vtkPolyData, and thus can represent whatever that class can.
cx::Mesh::Mesh | ( | const QString & | uid, |
const QString & | name = "" , |
||
vtkPolyDataPtr | polyData = vtkPolyDataPtr() , |
||
PatientModelServicePtr | patientModelService = PatientModelService::getNullObject() , |
||
SpaceProviderPtr | spaceProvider = SpaceProvider::getNullObject() |
||
) |
Definition at line 69 of file cxMesh.cpp.
|
virtual |
Definition at line 82 of file cxMesh.cpp.
|
virtual |
adds xml information about the image and its variabels
Reimplemented from cx::Data.
Definition at line 160 of file cxMesh.cpp.
|
virtual |
Implements cx::Data.
Definition at line 426 of file cxMesh.cpp.
|
static |
Definition at line 64 of file cxMesh.cpp.
bool cx::Mesh::getBackfaceCulling | ( | ) |
Get backface culling.
Definition at line 230 of file cxMesh.cpp.
QColor cx::Mesh::getColor | ( | ) |
Get the color of the mesh (Values are range 0 - 255)
Definition at line 210 of file cxMesh.cpp.
const char * cx::Mesh::getColorArray | ( | ) |
Definition at line 296 of file cxMesh.cpp.
QStringList cx::Mesh::getColorArrayList | ( | ) |
Definition at line 411 of file cxMesh.cpp.
bool cx::Mesh::getFrontfaceCulling | ( | ) |
Get frontface culling.
Definition at line 241 of file cxMesh.cpp.
const char * cx::Mesh::getGlyphLUT | ( | ) |
Definition at line 307 of file cxMesh.cpp.
|
inlinevirtual |
bool cx::Mesh::getIsWireframe | ( | ) | const |
true=wireframe, false=surface
Definition at line 94 of file cxMesh.cpp.
const char * cx::Mesh::getOrientationArray | ( | ) |
Definition at line 275 of file cxMesh.cpp.
QStringList cx::Mesh::getOrientationArrayList | ( | ) |
Definition at line 406 of file cxMesh.cpp.
const MeshPropertyData & cx::Mesh::getProperties | ( | ) | const |
Definition at line 416 of file cxMesh.cpp.
const MeshTextureData & cx::Mesh::getTextureData | ( | ) | const |
Definition at line 421 of file cxMesh.cpp.
QString cx::Mesh::getTextureShape | ( | ) |
Definition at line 312 of file cxMesh.cpp.
vtkPolyDataPtr cx::Mesh::getTransformedPolyDataCopy | ( | Transform3D | tranform | ) |
Create a new transformed polydata.
Definition at line 433 of file cxMesh.cpp.
|
inlinevirtual |
bool cx::Mesh::getUseColorFromPolydataScalars | ( | ) | const |
Definition at line 220 of file cxMesh.cpp.
double cx::Mesh::getVisSize | ( | ) |
Definition at line 286 of file cxMesh.cpp.
|
virtual |
Definition at line 150 of file cxMesh.cpp.
|
virtual |
Definition at line 155 of file cxMesh.cpp.
bool cx::Mesh::hasGlyph | ( | ) |
Definition at line 252 of file cxMesh.cpp.
bool cx::Mesh::hasTexture | ( | ) | const |
Definition at line 323 of file cxMesh.cpp.
bool cx::Mesh::isFiberBundle | ( | ) | const |
Definition at line 462 of file cxMesh.cpp.
|
virtual |
Implements cx::Data.
Definition at line 99 of file cxMesh.cpp.
|
signal |
|
virtual |
Use a XML node to load data.
dataNode | A XML data representation of this object. |
Reimplemented from cx::Data.
Definition at line 180 of file cxMesh.cpp.
|
virtual |
Implements cx::Data.
Definition at line 468 of file cxMesh.cpp.
|
slot |
Set backface culling on/off in mesh visualization.
Definition at line 225 of file cxMesh.cpp.
void cx::Mesh::setColor | ( | const QColor & | color | ) |
Set the color of the mesh.
Definition at line 205 of file cxMesh.cpp.
|
slot |
Definition at line 301 of file cxMesh.cpp.
|
slot |
Set frontface culling on/off in mesh visualization.
Definition at line 235 of file cxMesh.cpp.
|
slot |
Definition at line 317 of file cxMesh.cpp.
void cx::Mesh::setIsWireframe | ( | bool | on | ) |
Set rep to wireframe, false means surface.
Definition at line 86 of file cxMesh.cpp.
|
slot |
Definition at line 280 of file cxMesh.cpp.
|
slot |
Definition at line 246 of file cxMesh.cpp.
void cx::Mesh::setUseColorFromPolydataScalars | ( | bool | on | ) |
Definition at line 215 of file cxMesh.cpp.
|
slot |
Definition at line 291 of file cxMesh.cpp.
void cx::Mesh::setVtkPolyData | ( | const vtkPolyDataPtr & | polyData | ) |
Definition at line 112 of file cxMesh.cpp.
bool cx::Mesh::showGlyph | ( | ) |
Definition at line 257 of file cxMesh.cpp.
|
slot |
Definition at line 331 of file cxMesh.cpp.