37 #include "cxResourceExport.h"
41 #include <boost/shared_ptr.hpp>
65 static MeshPtr create(
const QString& uid,
const QString& name =
"");
66 Mesh(
const QString& uid,
const QString& name =
"");
74 void addXml(QDomNode& dataNode);
75 virtual void parseXml(QDomNode& dataNode);
76 virtual bool load(QString path);
85 virtual QIcon
getIcon() {
return QIcon(
":/icons/surface.png");}
88 void setColor(
const QColor& color);
90 bool getBackfaceCulling();
91 bool getFrontfaceCulling();
92 void setIsWireframe(
bool on);
93 bool getIsWireframe()
const;
95 bool isFiberBundle()
const;
99 const char * getOrientationArray();
100 const char * getColorArray();
101 const char * getGlyphLUT();
102 QStringList getOrientationArrayList();
103 QStringList getColorArrayList();
105 virtual void save(
const QString &basePath);
109 void setBackfaceCullingSlot(
bool backfaceCulling);
110 void setFrontfaceCullingSlot(
bool backfaceCulling);
111 void setShowGlyph(
bool val);
112 void setVisSize(
double size);
113 void setOrientationArray(
const char * orientationArray);
114 void setColorArray(
const char * colorArray);
115 void setGlyphLUT(
const char * glyphLUT);
120 bool mBackfaceCulling;
121 bool mFrontfaceCulling;
125 bool shouldGlyphBeEnableByDefault();
126 std::string mOrientationArray;
127 std::string mColorArray;
128 std::string mGlyphLUT;
129 QStringList mOrientationArrayList;
130 QStringList mColorArrayList;
133 typedef boost::shared_ptr<Mesh>
MeshPtr;
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkSmartPointer< class vtkPolyData > vtkPolyDataPtr
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
virtual QString getType() const
Superclass for all data objects.
static QString getTypeName()
boost::shared_ptr< class Mesh > MeshPtr