#include <CutModelFigure.h>
Public Member Functions | |
CutModelFigure () | |
virtual void | SetPosition (double x, double y, double z) |
virtual void | SetScale (double sx, double sy, double sz) |
virtual void | SetRotation (double alfa, double beta, double teta) |
virtual void | SetSpacing (double spcX, double spcY, double spcZ) |
virtual void | SetVtkTransform (vtkTransform *transform) |
virtual void | SetInversVtkTransform (vtkTransform *inverstransform) |
virtual bool | IfPointInside (double x, double y, double z)=0 |
virtual double | GetTheoricVolume ()=0 |
virtual vtkPolyData * | getPolyData ()=0 |
Protected Attributes | |
double | _sx |
double | _sy |
double | _sz |
vtkTransform * | _inversModel |
vtkTransform * | _matrixModel |
Private Attributes | |
double | _px |
double | _py |
double | _pz |
double | _alfa |
double | _beta |
double | _teta |
double | _spcX |
double | _spcY |
double | _spcZ |
char * | GetName |
Definition at line 7 of file CutModelFigure.h.
CutModelFigure::CutModelFigure | ( | ) | [inline] |
Definition at line 10 of file CutModelFigure.h.
virtual vtkPolyData* CutModelFigure::getPolyData | ( | ) | [pure virtual] |
Implemented in CutModelFigureCube, CutModelFigureCylinder, and CutModelFigureSphere.
virtual double CutModelFigure::GetTheoricVolume | ( | ) | [pure virtual] |
Implemented in CutModelFigureCube, CutModelFigureCylinder, and CutModelFigureSphere.
virtual bool CutModelFigure::IfPointInside | ( | double | x, | |
double | y, | |||
double | z | |||
) | [pure virtual] |
Implemented in CutModelFigureCube, CutModelFigureCylinder, and CutModelFigureSphere.
Referenced by CutModelData::ExecuteCut(), and CutModelData::ExecuteUnCut().
virtual void CutModelFigure::SetInversVtkTransform | ( | vtkTransform * | inverstransform | ) | [inline, virtual] |
Definition at line 56 of file CutModelFigure.h.
References _inversModel.
Referenced by CutModelData::ExecuteCut(), and CutModelData::ExecuteUnCut().
00056 { 00057 _inversModel = inverstransform; 00058 }
virtual void CutModelFigure::SetPosition | ( | double | x, | |
double | y, | |||
double | z | |||
) | [inline, virtual] |
virtual void CutModelFigure::SetRotation | ( | double | alfa, | |
double | beta, | |||
double | teta | |||
) | [inline, virtual] |
virtual void CutModelFigure::SetScale | ( | double | sx, | |
double | sy, | |||
double | sz | |||
) | [inline, virtual] |
virtual void CutModelFigure::SetSpacing | ( | double | spcX, | |
double | spcY, | |||
double | spcZ | |||
) | [inline, virtual] |
virtual void CutModelFigure::SetVtkTransform | ( | vtkTransform * | transform | ) | [inline, virtual] |
Definition at line 38 of file CutModelFigure.h.
References _alfa, _beta, _px, _py, _pz, _sx, _sy, _sz, and _teta.
Referenced by CutModelData::ExecuteCut(), and CutModelData::ExecuteUnCut().
00038 { 00039 double *orient = transform->GetOrientation(); 00040 _alfa = orient[0]; 00041 _beta = orient[1]; 00042 _teta = orient[2]; 00043 00044 double *scale = transform->GetScale(); 00045 _sx = scale[0]; 00046 _sy = scale[1]; 00047 _sz = scale[2]; 00048 00049 double *position = transform->GetPosition(); 00050 _px = position[0]; 00051 _py = position[1]; 00052 _pz = position[2]; 00053 00054 00055 }
double CutModelFigure::_alfa [private] |
Definition at line 68 of file CutModelFigure.h.
Referenced by SetRotation(), and SetVtkTransform().
double CutModelFigure::_beta [private] |
Definition at line 69 of file CutModelFigure.h.
Referenced by SetRotation(), and SetVtkTransform().
vtkTransform* CutModelFigure::_inversModel [protected] |
Definition at line 79 of file CutModelFigure.h.
Referenced by CutModelFigureSphere::IfPointInside(), CutModelFigureCylinder::IfPointInside(), CutModelFigureCube::IfPointInside(), and SetInversVtkTransform().
vtkTransform* CutModelFigure::_matrixModel [protected] |
Definition at line 80 of file CutModelFigure.h.
double CutModelFigure::_px [private] |
Definition at line 65 of file CutModelFigure.h.
Referenced by SetPosition(), and SetVtkTransform().
double CutModelFigure::_py [private] |
Definition at line 66 of file CutModelFigure.h.
Referenced by SetPosition(), and SetVtkTransform().
double CutModelFigure::_pz [private] |
Definition at line 67 of file CutModelFigure.h.
Referenced by SetPosition(), and SetVtkTransform().
double CutModelFigure::_spcX [private] |
Definition at line 71 of file CutModelFigure.h.
Referenced by SetSpacing().
double CutModelFigure::_spcY [private] |
Definition at line 72 of file CutModelFigure.h.
Referenced by SetSpacing().
double CutModelFigure::_spcZ [private] |
Definition at line 73 of file CutModelFigure.h.
Referenced by SetSpacing().
double CutModelFigure::_sx [protected] |
Definition at line 76 of file CutModelFigure.h.
Referenced by CutModelFigureSphere::GetTheoricVolume(), CutModelFigureCylinder::GetTheoricVolume(), CutModelFigureCube::GetTheoricVolume(), SetScale(), and SetVtkTransform().
double CutModelFigure::_sy [protected] |
Definition at line 77 of file CutModelFigure.h.
Referenced by CutModelFigureSphere::GetTheoricVolume(), CutModelFigureCylinder::GetTheoricVolume(), CutModelFigureCube::GetTheoricVolume(), SetScale(), and SetVtkTransform().
double CutModelFigure::_sz [protected] |
Definition at line 78 of file CutModelFigure.h.
Referenced by CutModelFigureSphere::GetTheoricVolume(), CutModelFigureCylinder::GetTheoricVolume(), CutModelFigureCube::GetTheoricVolume(), SetScale(), and SetVtkTransform().
double CutModelFigure::_teta [private] |
Definition at line 70 of file CutModelFigure.h.
Referenced by SetRotation(), and SetVtkTransform().
char* CutModelFigure::GetName [private] |
Definition at line 74 of file CutModelFigure.h.