11 #ifndef __itkMeshFromFiberTractsFilter_h 12 #define __itkMeshFromFiberTractsFilter_h 14 #include <itkLightProcessObject.h> 15 #include <vtkPolyData.h> 16 #include <vtkSmartPointer.h> 93 m_Color[0]=r, m_Color[1]=g, m_Color[2]=b;
100 void SetFlip(
const int flipx,
const int flipy,
const int flipz )
102 m_Flip[0]=flipx, m_Flip[1]=flipy, m_Flip[2]=flipz;
110 virtual void Update();
122 typename LightObject::Pointer InternalClone()
const ITK_OVERRIDE;
124 void PrintSelf(std::ostream& os, Indent indent)
const ITK_OVERRIDE
126 Superclass::PrintSelf(os, indent);
127 m_FiberTracts->Print(os, indent);
129 PrintVar(
true, os<<indent, m_TubeRadius, m_ShapeMode, m_ColorScheme);
130 PrintVar(
true, os<<indent, m_Color[0], m_Color[1], m_Color[2]);
131 m_Mesh->Print(std::cout<<
"m_Mesh=");
134 FiberTractsPointer m_FiberTracts = FiberTractsType::New();
136 ColorSchemeType m_ColorScheme=COLOR_BY_POINT_DIRECTION;
138 GlyphShapeType m_ShapeMode=GLYPH_LINE;
140 OutputMeshPolyDataPointer m_Mesh = OutputMeshPolyDataType::New();
142 double m_Color[3]={255,0,0};
144 double m_TubeRadius=0.2;
147 std::vector<int> m_Flip = std::vector<int>(3, 0);
151 void operator=(
const Self&);
158 #ifndef ITK_MANUAL_INSTANTIATION
FiberTracts< double > FiberTractsType
FiberType::Pointer FiberPointer
vtkPolyData OutputMeshPolyDataType
TractType::VertexType VertexType
FiberTractsType::FiberType FiberType
void SetColor(double r, double g, double b)
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
std::vector< int > GetFlip() const
LightProcessObject Superclass
FiberTractsType::FiberPointer FiberPointer
vtkSmartPointer< vtkPolyData > OutputMeshPolyDataPointer
FiberType::VertexType VertexType
const double * GetColor() const
void SetFlip(const int flipx, const int flipy, const int flipz)
#define PrintVar(cond, os,...)
std::vector< ValueType > STDVectorType
#define itkSetGetMacro(name, type)
void PrintVector(const std::vector< T > &vec, const std::string &str="", const char *separate=" ", std::ostream &os=std::cout, bool showStats=true)
FiberType::STDVectorType STDVectorType
SmartPointer< Self > Pointer
FiberTractsType::Pointer FiberTractsPointer
MeshFromFiberTractsFilter()
~MeshFromFiberTractsFilter()
OutputMeshPolyDataPointer GetOutput() const
Compute mesh from fibers.
SmartPointer< Self > Pointer
MeshFromFiberTractsFilter Self