manualViewBaseContour Class Reference

#include <manualViewBaseContour.h>

Inheritance diagram for manualViewBaseContour:
Inheritance graph
[legend]
Collaboration diagram for manualViewBaseContour:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 manualViewBaseContour ()
virtual ~manualViewBaseContour ()
virtual int GetType ()
virtual void Save (FILE *pFile)
virtual void Open (FILE *pFile)
void AddPoint ()
virtual void AddPoint (manualViewPoint *manualViewPoint)
void InsertPoint (int id)
void DeleteContour ()
void DeletePoint (int x, int y, int z)
virtual void DeletePoint (int id)
virtual void UpdateViewPoint (int id)
virtual void UpdateViewPoints ()
void SetSelected (bool selected)
void SetPosibleSelected (bool posibleSelected)
bool GetSelected ()
bool GetPosibleSelected ()
void DeleteSelectedPoints ()
bool GetEditable ()
void SetEditable (bool *condition)
virtual int GetIdPoint (int x, int y, int z)
void SelectPoint (int i, bool select)
void SelectLstPoints ()
void SelectAllPoints (bool select)
virtual int SelectPosiblePoint (int x, int y, int z)
bool SelectPosibleContour (int x, int y, int z)
void SelectAllPossibleSelected (bool select)
void SetPointSelected (int id, bool select)
void SetPointPosibleSelected (int id, bool select)
void SetIfViewControlPoints (bool ifShow)
bool GetIfViewControlPoints ()
void UnSelectPoint (int i)
void UnSelectLstPoints ()
void UnSelectAllPoints ()
void SetModel (manualBaseModel *manContModel)
void SetWxVtkBaseView (wxVtkBaseView *wxvtkbaseview)
virtual void Refresh ()
int GetNumberOfPoints ()
void CreateNewContour ()
double * GetVectorPointsXManualContour ()
double * GetVectorPointsYManualContour ()
double * GetVectorPointsZManualContour ()
virtual bool ifTouchContour (int x, int y, int z)
void UpdateColorActor ()
void SetRange (double range)
double GetRange ()
void SetZ (int z)
int GetZ ()
wxVtkBaseViewGetWxVtkBaseView ()
virtual void InitMove (int x, int y, int z)
virtual void MoveContour (int x, int y, int z)
virtual void MoveContour (int horizontalUnits, int verticalUnits)
virtual void GetMinMax (double &minX, double &minY, double &minZ, double &maxX, double &maxY, double &maxZ)
virtual void TransfromCoordViewWorld (double &X, double &Y, double &Z, int type=2)
void ClearContour ()
virtual void ClearPoint (int id)
void SetVisible (bool ok)
void SetShowText (bool ok)
void GetSpacing (double spc[3])
void SetSpacing (double spc[3])
void SetColorNormalContour (double r, double g, double b)
void GetColorNormalContour (double &r, double &g, double &b)
void SetColorEditContour (double r, double g, double b)
void GetColorEditContour (double &r, double &g, double &b)
void SetColorSelectContour (double r, double g, double b)
void GetColorSelectContour (double &r, double &g, double &b)
void AddCompleteContourActor (bool ifControlPoints=false)
void RemoveCompleteContourActor ()
virtual void AddSplineActor ()
virtual void RemoveSplineActor ()
virtual void AddControlPoints ()
virtual void RemoveControlPoints ()
void AddTextActor ()
void RemoveTextActor ()
void InitTextActor ()
virtual manualViewBaseContourClone ()
void CopyAttributesTo (manualViewBaseContour *cloneObject)
virtual void RefreshContour ()
void SetWidthLine (double width)
double GetWidthLine ()
virtual void ConstructVTKObjects ()

Protected Member Functions

virtual void RefreshText ()

Protected Attributes

double _range
double _coulorEdit_r
double _coulorEdit_g
double _coulorEdit_b
double _coulorNormal_r
double _coulorNormal_g
double _coulorNormal_b
double _coulorSelection_r
double _coulorSelection_g
double _coulorSelection_b
double _widthline
wxVtkBaseView_wxvtkbaseview
bool _selected
bool * _editable
bool _posibleSelected
bool _viewControlPoints
bool _show_text
int _id_viewPoint_for_text
vtkTextActor * _textActor
manualBaseModel_manContModel
vtkPoints * _pts
int _sizePointsContour
std::vector< manualViewPoint * > _lstViewPoints
double _spc [3]

Private Member Functions

void DeleteVtkObjects ()

Private Attributes

vtkPolyData * _pd
vtkActor * _contourVtkActor
vtkPolyDataMapper * _bboxMapper

Detailed Description

Definition at line 52 of file manualViewBaseContour.h.


Constructor & Destructor Documentation

manualViewBaseContour::manualViewBaseContour (  ) 

Definition at line 8 of file manualViewBaseContour.cpp.

References _bboxMapper, _contourVtkActor, _coulorEdit_b, _coulorEdit_g, _coulorEdit_r, _coulorNormal_b, _coulorNormal_g, _coulorNormal_r, _coulorSelection_b, _coulorSelection_g, _coulorSelection_r, _manContModel, _pd, _posibleSelected, _pts, _range, _selected, _show_text, _sizePointsContour, _spc, _textActor, _viewControlPoints, _widthline, and _wxvtkbaseview.

Referenced by Clone().

00009 {
00010         _show_text                      = true;
00011         _textActor                      = NULL;
00012         _manContModel           = NULL;
00013         _wxvtkbaseview          = NULL;
00014         _selected                       = false;
00015         _posibleSelected        = false;
00016         _viewControlPoints      = false;
00017         _pts                            = NULL;
00018         _pd                                     = NULL;
00019         _contourVtkActor        = NULL;
00020         _bboxMapper                     = NULL;
00021         _range                          = 1;
00022         _sizePointsContour      = 100;
00023         _spc[0]                         = 1;
00024         _spc[1]                         = 1;
00025         _spc[2]                         = 1;
00026 
00027         _coulorEdit_r           = 1;
00028         _coulorEdit_g           = 1;
00029         _coulorEdit_b           = 0;
00030 
00031         _coulorNormal_r         = 1;
00032         _coulorNormal_g         = 0;
00033         _coulorNormal_b         = 1;
00034 
00035         _coulorSelection_r      = 0;
00036         _coulorSelection_g      = 1;
00037         _coulorSelection_b      = 0;
00038 
00039         _widthline                      = 1;
00040 
00041 }

Here is the caller graph for this function:

manualViewBaseContour::~manualViewBaseContour (  )  [virtual]

Definition at line 43 of file manualViewBaseContour.cpp.

References _lstViewPoints.

00044 {
00045         int i,size=_lstViewPoints.size();
00046         for (i=0;i<size; i++){
00047                 delete _lstViewPoints[i];
00048         }
00049         _lstViewPoints.clear();
00050 }


Member Function Documentation

void manualViewBaseContour::AddCompleteContourActor ( bool  ifControlPoints = false  ) 

Definition at line 81 of file manualViewBaseContour.cpp.

References _viewControlPoints, _wxvtkbaseview, AddControlPoints(), AddSplineActor(), AddTextActor(), wxVtkBaseView::GetRenderer(), Refresh(), and RefreshContour().

Referenced by CreateNewContour().

00082 {
00083         _viewControlPoints = ifControlPoints;
00084          /*vtkRenderer * theRenderer = */  _wxvtkbaseview->GetRenderer();  // JPRx ??
00085          //Adding the spline
00086          AddSplineActor();
00087 
00088          AddTextActor();
00089          //Adding each control point
00090          if( ifControlPoints )
00091                 AddControlPoints();
00092          RefreshContour();
00093          Refresh();
00094 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::AddControlPoints (  )  [virtual]

Definition at line 172 of file manualViewBaseContour.cpp.

References _lstViewPoints, _viewControlPoints, _wxvtkbaseview, wxVtkBaseView::GetRenderer(), and SetIfViewControlPoints().

Referenced by AddCompleteContourActor(), and manualContourControler::MouseDLeft().

00173 {
00174         vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer();
00175         SetIfViewControlPoints( true );
00176          if( _viewControlPoints )
00177          {
00178                 int i,size=_lstViewPoints.size();
00179                 for (i=0;i<size; i++)
00180                 {
00181                         vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor();
00182                         theRenderer->AddActor( pointActor );
00183                 }
00184          }
00185 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::AddPoint ( manualViewPoint manualViewPoint  )  [virtual]

Definition at line 343 of file manualViewBaseContour.cpp.

References _lstViewPoints, _spc, _wxvtkbaseview, manualViewPoint::CreateVtkPointActor(), wxVtkBaseView::GetRenderer(), and manualViewPoint::SetSpacing().

00344 {
00345         _lstViewPoints.push_back( manualViewPoint );
00346 
00347         // EED 3 oct 2006
00348         manualViewPoint->SetSpacing(_spc);
00349 
00350         vtkActor *actor = manualViewPoint->CreateVtkPointActor();
00351         _wxvtkbaseview->GetRenderer()->AddActor( actor );       
00352 }

Here is the call graph for this function:

void manualViewBaseContour::AddPoint (  ) 
void manualViewBaseContour::AddSplineActor (  )  [virtual]

Reimplemented in manualViewBullEye, and manualViewPoints.

Definition at line 144 of file manualViewBaseContour.cpp.

References _contourVtkActor, _wxvtkbaseview, and wxVtkBaseView::GetRenderer().

Referenced by AddCompleteContourActor().

00145 {
00146         vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer();
00147         if (_contourVtkActor!=NULL)
00148                 theRenderer->AddActor( _contourVtkActor  );
00149 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::AddTextActor (  ) 

Definition at line 187 of file manualViewBaseContour.cpp.

References _textActor, _wxvtkbaseview, and wxVtkBaseView::GetRenderer().

Referenced by AddCompleteContourActor(), and manualContourControler::MouseDLeft().

00188 {
00189         _wxvtkbaseview->GetRenderer()->AddActor2D( _textActor );
00190 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::ClearContour (  ) 

Definition at line 854 of file manualViewBaseContour.cpp.

References _contourVtkActor, _lstViewPoints, _wxvtkbaseview, ClearPoint(), DeleteVtkObjects(), wxVtkBaseView::GetRenderer(), and Refresh().

Referenced by manualContourContainer::clearLumen(), and manualContourContainer::clearWall().

00855 {
00856         if (_contourVtkActor!=NULL){
00857                 _wxvtkbaseview->GetRenderer()->RemoveActor( _contourVtkActor );
00858         }
00859         DeleteVtkObjects();
00860         int i,size=_lstViewPoints.size();
00861         for (i=0;i<size;i++){
00862                 ClearPoint(0);
00863         }
00864         Refresh();
00865 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::ClearPoint ( int  id  )  [virtual]

Reimplemented in manualViewContour.

Definition at line 867 of file manualViewBaseContour.cpp.

References DeletePoint().

Referenced by ClearContour().

00868 {
00869         DeletePoint(id);
00870 }

Here is the call graph for this function:

Here is the caller graph for this function:

manualViewBaseContour * manualViewBaseContour::Clone (  )  [virtual]

Reimplemented in manualView3DContour, manualView3VContour, manualViewBullEye, manualViewCircle, manualViewContour, manualViewLine, manualViewPoints, manualViewRoi, manualViewRotationTool, and manualViewPerpPlaneContour.

Definition at line 110 of file manualViewBaseContour.cpp.

References CopyAttributesTo(), and manualViewBaseContour().

00111 {
00112         manualViewBaseContour * clone = new manualViewBaseContour();
00113         CopyAttributesTo(clone);
00114         return clone;
00115 
00116 }

Here is the call graph for this function:

void manualViewBaseContour::ConstructVTKObjects (  )  [virtual]

Reimplemented in manualViewBullEye, and manualViewPoints.

Definition at line 232 of file manualViewBaseContour.cpp.

References _bboxMapper, _contourVtkActor, _manContModel, _pd, _pts, DeleteVtkObjects(), manualBaseModel::GetNumberOfPointsSpline(), InitTextActor(), and UpdateColorActor().

Referenced by manualViewBullEye::ConstructVTKObjects(), and CreateNewContour().

00233 {
00234 
00235 
00236 //JSTG 29-02-08 -----------------------------------------------
00237         //int i , nps = _sizePointsContour;
00238         int i;
00239         int nps = _manContModel->GetNumberOfPointsSpline();
00240 //-------------------------------------------------------------
00241 
00242         DeleteVtkObjects();
00243         _pts = vtkPoints::New();
00244         _pts->SetNumberOfPoints(nps);
00245         for (i=0 ; i<nps ; i++){
00246                 _pts->SetPoint(i,       0       , 0     , 0 );
00247         }
00248         // This is for the boundaring inicialisation
00249 
00250 //EED 29Mars2009        
00251         //_pts->SetPoint(0,     0       , 0     , -1000 );
00252         //_pts->SetPoint(1,     0       , 0     ,  1000 );
00253         _pts->SetPoint(0,       -1000   , -1000 , -1000 );
00254         _pts->SetPoint(1,       1000    , 1000  , 1000  );
00255 
00256         vtkCellArray *lines = vtkCellArray::New();
00257         lines->InsertNextCell( nps /* +1 */ );
00258         for ( i=0 ; i<nps+1 ; i++ ){
00259                 lines->InsertCellPoint(i % nps );
00260         }
00261         _pd = vtkPolyData::New();
00262         _pd->SetPoints( _pts );
00263         _pd->SetLines( lines );
00264         lines->Delete();  //do not delete lines ??
00265 
00266         _contourVtkActor        =       vtkActor::New();
00267     _bboxMapper                 =       vtkPolyDataMapper::New();
00268     _bboxMapper->ScalarVisibilityOff( );
00269 
00270 
00271         _bboxMapper->SetInput(_pd);
00272         _bboxMapper->ImmediateModeRenderingOn();
00273         _contourVtkActor->SetMapper(_bboxMapper);
00274         _contourVtkActor->GetProperty()->BackfaceCullingOff();
00275 
00276 
00277         UpdateColorActor();
00278 
00279         _pd->ComputeBounds();
00280 
00281         InitTextActor();
00282         
00283         
00284 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::CopyAttributesTo ( manualViewBaseContour cloneObject  ) 

Reimplemented in manualView3DContour, manualView3VContour, manualViewBullEye, manualViewCircle, manualViewContour, manualViewLine, manualViewPoints, manualViewRoi, manualViewRotationTool, and manualViewPerpPlaneContour.

Definition at line 120 of file manualViewBaseContour.cpp.

References _coulorEdit_b, _coulorEdit_g, _coulorEdit_r, _coulorNormal_b, _coulorNormal_g, _coulorNormal_r, _coulorSelection_b, _coulorSelection_g, _coulorSelection_r, _lstViewPoints, _spc, _wxvtkbaseview, AddPoint(), GetIfViewControlPoints(), GetPosibleSelected(), GetRange(), GetSelected(), GetZ(), SetColorEditContour(), SetColorNormalContour(), SetColorSelectContour(), SetIfViewControlPoints(), SetPosibleSelected(), SetRange(), SetSelected(), SetSpacing(), SetWxVtkBaseView(), and SetZ().

Referenced by Clone().

00121 {
00122         // Fathers object
00123         //XXXX::CopyAttributesTo(cloneObject);
00124 
00125         cloneObject-> SetWxVtkBaseView( this->_wxvtkbaseview );
00126         cloneObject-> SetSelected( this->GetSelected() );
00127         cloneObject-> SetPosibleSelected( this->GetPosibleSelected() );
00128         cloneObject-> SetIfViewControlPoints( this->GetIfViewControlPoints() );
00129         cloneObject-> SetRange( this->GetRange() );
00130         cloneObject-> SetZ( this->GetZ() );
00131         cloneObject-> SetSpacing( _spc );
00132         cloneObject-> SetColorNormalContour( _coulorNormal_r, _coulorNormal_g, _coulorNormal_b );
00133         cloneObject-> SetColorEditContour( _coulorEdit_r, _coulorEdit_g, _coulorEdit_b );
00134         cloneObject-> SetColorSelectContour( _coulorSelection_r, _coulorSelection_g, _coulorSelection_b );
00135 
00136         int i, size = _lstViewPoints.size();
00137         for ( i=0; i<size; i++ )
00138         {
00139                 cloneObject->AddPoint(  );
00140         }
00141 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::CreateNewContour (  ) 

Definition at line 305 of file manualViewBaseContour.cpp.

References AddCompleteContourActor(), and ConstructVTKObjects().

Referenced by manualContourBaseControler::CreateNewManualContour(), manualContourBaseControler::ResetContour(), manualContour3VControler::ResetContour_Others(), and wxMaracasCoutourTool::SetControlPoints().

00306 {
00307         ConstructVTKObjects();
00308         /*
00309         _wxvtkbaseview->GetRenderer()->AddActor( _contourVtkActor );
00310         _wxvtkbaseview->GetRenderer()->AddActor2D(_textActor);*/
00311         AddCompleteContourActor();
00312 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::DeleteContour (  ) 

Definition at line 367 of file manualViewBaseContour.cpp.

References _lstViewPoints, DeletePoint(), DeleteVtkObjects(), Refresh(), and RemoveCompleteContourActor().

Referenced by manualContourBaseControler::DeleteContour(), manualContour3VControler::ResetContour_Others(), and wxMaracasCoutourTool::SetControlPoints().

00368 {
00369         RemoveCompleteContourActor();
00370         /*if (_contourVtkActor!=NULL){
00371                 _wxvtkbaseview->GetRenderer()->RemoveActor( _contourVtkActor );
00372         }*/
00373         DeleteVtkObjects();
00374         int i,size=_lstViewPoints.size();
00375         for (i=0;i<size;i++){
00376                 manualViewBaseContour::DeletePoint(0);
00377         }
00378         Refresh();
00379 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::DeletePoint ( int  id  )  [virtual]

Reimplemented in manualViewContour.

Definition at line 381 of file manualViewBaseContour.cpp.

References _lstViewPoints, _wxvtkbaseview, wxVtkBaseView::GetRenderer(), manualViewPoint::GetVtkActor(), and Refresh().

00382 {
00383         int size=_lstViewPoints.size();
00384         if ( (id>=0) && (id<size) ){
00385                 manualViewPoint         *mvp    =_lstViewPoints[id];
00386 //EED ups1
00387 //              _handlePicker->DeletePickList(mvp->GetVtkActor());
00388                 _wxvtkbaseview->GetRenderer()->RemoveActor( mvp->GetVtkActor() );
00389                 std::vector<manualViewPoint*>::iterator itNum = _lstViewPoints.begin() + id;
00390                 _lstViewPoints.erase(itNum);
00391                 delete mvp;
00392                 Refresh();
00393         }
00394 }

Here is the call graph for this function:

void manualViewBaseContour::DeletePoint ( int  x,
int  y,
int  z 
)

Definition at line 396 of file manualViewBaseContour.cpp.

References GetIdPoint().

Referenced by ClearPoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint_Others(), DeleteContour(), and DeleteSelectedPoints().

00397 {
00398         int id=GetIdPoint(x,y,z);
00399         if (id!=-1){
00400                 DeletePoint(id);
00401         }
00402 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::DeleteSelectedPoints (  ) 

Definition at line 434 of file manualViewBaseContour.cpp.

References _lstViewPoints, DeletePoint(), GetSelected(), and Refresh().

00435 {
00436         int i,size=_lstViewPoints.size();
00437         for (i=size-1;i>=0;i--){
00438                 if (_lstViewPoints[i]->GetSelected()==true){
00439                         DeletePoint(i);
00440                 }
00441         }
00442         Refresh();
00443 }

Here is the call graph for this function:

void manualViewBaseContour::DeleteVtkObjects (  )  [private]

Definition at line 197 of file manualViewBaseContour.cpp.

References _bboxMapper, _contourVtkActor, _pd, and _pts.

Referenced by ClearContour(), ConstructVTKObjects(), and DeleteContour().

00198 {
00199         if ( _contourVtkActor   != NULL )       { _contourVtkActor  -> Delete(); }
00200         if ( _bboxMapper                != NULL )       { _bboxMapper           -> Delete(); }
00201         if ( _pts                               != NULL )       { _pts                          -> Delete(); }
00202         if ( _pd                                != NULL )       { _pd                           -> Delete(); }
00203         _contourVtkActor        = NULL;
00204         _bboxMapper                     = NULL;
00205         _pts                            = NULL;
00206         _pd                                     = NULL;
00207 }

Here is the caller graph for this function:

void manualViewBaseContour::GetColorEditContour ( double &  r,
double &  g,
double &  b 
)

Definition at line 661 of file manualViewBaseContour.cpp.

References _coulorEdit_b, _coulorEdit_g, and _coulorEdit_r.

00662 {
00663         r = _coulorEdit_r;
00664         g = _coulorEdit_g;
00665         b = _coulorEdit_b;
00666 }

void manualViewBaseContour::GetColorNormalContour ( double &  r,
double &  g,
double &  b 
)

Definition at line 647 of file manualViewBaseContour.cpp.

References _coulorNormal_b, _coulorNormal_g, and _coulorNormal_r.

00648 {
00649         r = _coulorNormal_r;
00650         g = _coulorNormal_g;
00651         b = _coulorNormal_b;
00652 }

void manualViewBaseContour::GetColorSelectContour ( double &  r,
double &  g,
double &  b 
)

Definition at line 675 of file manualViewBaseContour.cpp.

References _coulorSelection_b, _coulorSelection_g, and _coulorSelection_r.

00676 {
00677         r = _coulorSelection_r;
00678         g = _coulorSelection_g;
00679         b = _coulorSelection_b;
00680 }

bool manualViewBaseContour::GetEditable (  ) 

Definition at line 414 of file manualViewBaseContour.cpp.

References _editable.

Referenced by manualViewPoints::RefreshContour(), SelectPosibleContour(), and UpdateColorActor().

00415 {
00416         return *_editable;
00417 }

Here is the caller graph for this function:

int manualViewBaseContour::GetIdPoint ( int  x,
int  y,
int  z 
) [virtual]
bool manualViewBaseContour::GetIfViewControlPoints (  ) 

Definition at line 468 of file manualViewBaseContour.cpp.

References _viewControlPoints.

Referenced by CopyAttributesTo().

00469 {
00470         return _viewControlPoints;
00471 }

Here is the caller graph for this function:

void manualViewBaseContour::GetMinMax ( double &  minX,
double &  minY,
double &  minZ,
double &  maxX,
double &  maxY,
double &  maxZ 
) [virtual]

Definition at line 783 of file manualViewBaseContour.cpp.

References _manContModel, manualBaseModel::GetManualPoint(), manualBaseModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), and manualPoint::GetZ().

00784 {
00785         double  pp[3];
00786         manualPoint *mp;
00787         int i;
00788         int size=_manContModel->GetSizeLstPoints();
00789         minX=99999;
00790         minY=99999;
00791         maxX=-99999;
00792         maxY=-99999;
00793         bool ifFindZ = minZ!=-1.0 && maxZ!=-1.0;
00794         if ( ifFindZ )
00795         {
00796                 minZ=99999;
00797                 maxZ=-99999;
00798         }
00799         for( i = 0; i < size; i++ )
00800         {
00801                 mp=_manContModel->GetManualPoint(i);
00802                 pp[0]=mp->GetX();
00803                 pp[1]=mp->GetY();
00804                 if ( ifFindZ )
00805                         pp[2]=mp->GetZ();
00806 
00807                 // min X
00808                 if (pp[0]<minX)
00809                 {
00810                         minX=pp[0];
00811                 }
00812                 //min Y
00813                 if (pp[1]<minY)
00814                 {
00815                         minY=pp[1];
00816                 }
00817                 //max X
00818                 if (pp[0]>maxX)
00819                 {
00820                         maxX=pp[0];
00821                 }
00822                 // max Y
00823                 if (pp[1]>maxY)
00824                 {
00825                         maxY=pp[1];
00826                 }
00827                 if ( ifFindZ )
00828                 {
00829                         // min Z
00830                         if (pp[2]<minZ)
00831                         {
00832                                 minZ=pp[2];
00833                         }
00834                         // max Z
00835                         if (pp[2]>maxZ)
00836                         {
00837                                 maxZ=pp[2];
00838                         }
00839                 }
00840         }
00841         if ( size<1 )
00842         {
00843                 minX = 0;
00844                 maxX = 0;
00845 
00846                 minY = 0;
00847                 maxY = 0;
00848 
00849                 minZ = 0;
00850                 maxZ = 0;
00851         }
00852 }

Here is the call graph for this function:

int manualViewBaseContour::GetNumberOfPoints (  ) 
bool manualViewBaseContour::GetPosibleSelected (  ) 

Definition at line 429 of file manualViewBaseContour.cpp.

References _posibleSelected.

Referenced by CopyAttributesTo(), manualContourBaseControler::MouseDLeft(), and manualViewContour::RefreshText().

00430 {
00431         return _posibleSelected;
00432 }

Here is the caller graph for this function:

double manualViewBaseContour::GetRange (  ) 
bool manualViewBaseContour::GetSelected (  ) 

Definition at line 424 of file manualViewBaseContour.cpp.

References _selected.

Referenced by CopyAttributesTo(), and DeleteSelectedPoints().

00425 {
00426         return _selected;
00427 }

Here is the caller graph for this function:

void manualViewBaseContour::GetSpacing ( double  spc[3]  ) 

Definition at line 907 of file manualViewBaseContour.cpp.

References _spc.

Referenced by manualViewBullEye::ConstructVTKObjects().

00908 {
00909         spc[0] = _spc[0];
00910         spc[1] = _spc[1];
00911         spc[2] = _spc[2];
00912 }

Here is the caller graph for this function:

int manualViewBaseContour::GetType (  )  [virtual]

Reimplemented in manualView3VContour, manualViewBullEye, manualViewCircle, manualViewContour, manualViewLine, manualViewPoints, manualViewRoi, and manualViewRotationTool.

Definition at line 54 of file manualViewBaseContour.cpp.

Referenced by Save().

00055 {
00056 // Information...
00057 //int manualViewBaseContour::GetType()          0;
00058 //int manualViewContour::GetType()                      1;
00059 //int manualViewRoi::GetType()                          2;
00060 //int manualViewCircle::GetType()                       3;
00061 //int manualViewStar::GetType()                         4;
00062 //int manualViewLine::GetType()                         6;
00063 //int manualViewPoints::GetType()                       7;
00064 
00065 
00066         return 0;
00067 }

Here is the caller graph for this function:

double * manualViewBaseContour::GetVectorPointsXManualContour (  ) 

Definition at line 573 of file manualViewBaseContour.cpp.

References _pts, and _sizePointsContour.

Referenced by manualContourBaseControler::GetVectorPointsXManualContour().

00573                                                             {
00574         double pp[3];
00575         int i,size = _sizePointsContour;
00576         double *vx = (double*)malloc(sizeof(double)*size);
00577         for (i=0;i<size;i++){
00578                 _pts->GetPoint(i,pp);
00579                 vx[i]=pp[0];
00580         }
00581         return vx;
00582 }

Here is the caller graph for this function:

double * manualViewBaseContour::GetVectorPointsYManualContour (  ) 

Definition at line 584 of file manualViewBaseContour.cpp.

References _pts, and _sizePointsContour.

Referenced by manualContourBaseControler::GetVectorPointsYManualContour().

00585 {
00586         double pp[3];
00587         int i,size = _sizePointsContour;
00588         double *vy = (double*)malloc(sizeof(double)*size);
00589         for (i=0;i<size;i++){
00590                 _pts->GetPoint(i,pp);
00591                 vy[i]=pp[1];
00592         }
00593         return vy;
00594 }

Here is the caller graph for this function:

double * manualViewBaseContour::GetVectorPointsZManualContour (  ) 

Definition at line 596 of file manualViewBaseContour.cpp.

References _pts, and _sizePointsContour.

00597 {
00598         double pp[3];
00599         int i,size = _sizePointsContour;
00600         double *vz = (double*)malloc(sizeof(double)*size);
00601         for (i=0;i<size;i++){
00602                 _pts->GetPoint(i,pp);
00603                 vz[i]=pp[2];
00604         }
00605         return vz;
00606 }

double manualViewBaseContour::GetWidthLine (  ) 

Definition at line 226 of file manualViewBaseContour.cpp.

References _widthline.

Referenced by manualViewBullEye::ConstructVTKObjects().

00227 {
00228         return _widthline;
00229 }

Here is the caller graph for this function:

wxVtkBaseView * manualViewBaseContour::GetWxVtkBaseView (  ) 
int manualViewBaseContour::GetZ (  ) 

Definition at line 763 of file manualViewBaseContour.cpp.

Referenced by CopyAttributesTo().

00764 {
00765 //      return _Z;
00766         return 0;
00767 }

Here is the caller graph for this function:

bool manualViewBaseContour::ifTouchContour ( int  x,
int  y,
int  z 
) [virtual]

Reimplemented in manualView3VContour, manualViewContour, manualViewPoints, manualViewRoi, and manualViewPerpPlaneContour.

Definition at line 539 of file manualViewBaseContour.cpp.

Referenced by SelectPosibleContour().

00540 {
00541         return false;
00542 }

Here is the caller graph for this function:

void manualViewBaseContour::InitMove ( int  x,
int  y,
int  z 
) [virtual]
void manualViewBaseContour::InitTextActor (  ) 

Definition at line 286 of file manualViewBaseContour.cpp.

References _textActor.

Referenced by manualViewPoints::ConstructVTKObjects(), and ConstructVTKObjects().

00287 {
00288         //      Text
00289         _textActor = vtkTextActor::New();
00290 //      _textActor->SetDisplayPosition(200, 200);
00291         _textActor->SetInput("00");
00292         // Set coordinates to match the old vtkScaledTextActor default value
00293 //      _textActor->GetPosition2Coordinate()->SetCoordinateSystemToNormalizedViewport();
00294 //      _textActor->GetPosition2Coordinate()->SetValue( 0.2 , 0.2 );
00295         _textActor->GetPositionCoordinate()->SetCoordinateSystemToWorld ();
00296 //      _textActor->GetPositionCoordinate()->SetValue( 0.8 , 0.8 );
00297 
00298         vtkTextProperty *tprop = _textActor->GetTextProperty();
00299         tprop->SetFontSize(14);
00300         tprop->SetFontFamilyToArial();
00301         tprop->SetColor(0, 0, 1);
00302 }

Here is the caller graph for this function:

void manualViewBaseContour::InsertPoint ( int  id  ) 

Definition at line 355 of file manualViewBaseContour.cpp.

References _lstViewPoints, _spc, _wxvtkbaseview, manualViewPoint::CreateVtkPointActor(), wxVtkBaseView::GetRenderer(), GetWxVtkBaseView(), and manualViewPoint::SetSpacing().

Referenced by manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), and manualContour3VControler::InsertPoint_Others().

00356 {
00357         manualViewPoint         *mvp    = new manualViewPoint( this->GetWxVtkBaseView() );
00358 
00359 // EED 3 oct 2006
00360         mvp->SetSpacing(_spc);
00361 
00362         std::vector<manualViewPoint*>::iterator itNum = _lstViewPoints.begin() + id;
00363         _lstViewPoints.insert(itNum,mvp);
00364         _wxvtkbaseview->GetRenderer()->AddActor( mvp->CreateVtkPointActor() );
00365 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::MoveContour ( int  horizontalUnits,
int  verticalUnits 
) [virtual]

Reimplemented in manualViewContour.

Definition at line 778 of file manualViewBaseContour.cpp.

00779 {
00780 
00781 }

void manualViewBaseContour::MoveContour ( int  x,
int  y,
int  z 
) [virtual]
void manualViewBaseContour::Open ( FILE *  pFile  )  [virtual]

Reimplemented in manualViewContour.

Definition at line 76 of file manualViewBaseContour.cpp.

00077 {
00078 }

void manualViewBaseContour::Refresh (  )  [virtual]

Reimplemented in manualViewPoints.

Definition at line 608 of file manualViewBaseContour.cpp.

References _contourVtkActor, _lstViewPoints, _show_text, _wxvtkbaseview, wxVtkBaseView::GetRenWin(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), RefreshContour(), RefreshText(), UpdateColorActor(), and UpdateViewPoint().

Referenced by AddCompleteContourActor(), ClearContour(), wxImageViewerWidget::CreateNewManualContour(), manualContour3VControler::DeleteActualMousePoint_Others(), DeleteContour(), DeletePoint(), DeleteSelectedPoints(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), manualCircleControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::OnChar(), manualContour3VControler::OnChar_Others(), wxWidgetMesure2D::OnCloseContour(), wxWidgetMesure2D::OnVisibleInformation(), wxWidgetMesure2D::OnVisibleMessureTool(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), RemoveCompleteContourActor(), manualContourContainer::setLumenVisibility(), manualContourContainer::setWallVisibility(), UnSelectAllPoints(), and UnSelectPoint().

00609 {
00610         if (_contourVtkActor!=NULL){
00611                 RefreshContour();
00612         }
00613         int i,size=_lstViewPoints.size();
00614         for (i=0;i<size;i++){
00615                 UpdateViewPoint(i);
00616                 _lstViewPoints[i]->UpdateColorActor();
00617         }
00618         UpdateColorActor();
00619 
00620         if (_show_text==true)
00621         {
00622                 RefreshText();
00623         }
00624 
00625         vtkRenderWindowInteractor *vri = _wxvtkbaseview->GetWxVTKRenderWindowInteractor ();
00626         if (vri==NULL)
00627         {
00628                 _wxvtkbaseview->GetRenWin()->Render();
00629                 printf("EED %p How to optimize manualViewBaseContour::Refresh() \n",this);
00630         }
00631 
00632 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::RefreshContour (  )  [virtual]

Reimplemented in manualView3VContour, manualViewBullEye, manualViewBullEyeSector, manualViewContour, manualViewPoints, manualViewRoi, and manualViewPerpPlaneContour.

Definition at line 569 of file manualViewBaseContour.cpp.

Referenced by AddCompleteContourActor(), Refresh(), and RemoveCompleteContourActor().

00570 {
00571 }

Here is the caller graph for this function:

void manualViewBaseContour::RefreshText (  )  [protected, virtual]

Reimplemented in manualViewContour.

Definition at line 634 of file manualViewBaseContour.cpp.

References _textActor.

Referenced by Refresh().

00635 {
00636         if( _textActor!=NULL)
00637                 _textActor -> SetInput("00");
00638 }

Here is the caller graph for this function:

void manualViewBaseContour::RemoveCompleteContourActor (  ) 

Definition at line 97 of file manualViewBaseContour.cpp.

References _wxvtkbaseview, wxVtkBaseView::GetRenderer(), Refresh(), RefreshContour(), RemoveControlPoints(), RemoveSplineActor(), and RemoveTextActor().

Referenced by DeleteContour().

00098 {
00099         /*vtkRenderer * theRenderer =*/  _wxvtkbaseview->GetRenderer(); // JPRx ??
00100          //Removing the spline
00101         RemoveSplineActor();
00102         RemoveTextActor();
00103 
00104         //Removing each point
00105         RemoveControlPoints();
00106         RefreshContour();
00107         Refresh();
00108 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::RemoveControlPoints (  )  [virtual]

Definition at line 158 of file manualViewBaseContour.cpp.

References _lstViewPoints, _wxvtkbaseview, wxVtkBaseView::GetRenderer(), and SetIfViewControlPoints().

Referenced by manualContourControler::MouseMove(), RemoveCompleteContourActor(), and manualContourBaseControler::SetEditable().

00159 {
00160         if (_wxvtkbaseview!=NULL){
00161                 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer();
00162                 int i,size=_lstViewPoints.size();
00163                 for (i=0;i<size; i++)
00164                 {
00165                         vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor();
00166                         theRenderer->RemoveActor( pointActor );
00167                 } // for
00168         } // if
00169         SetIfViewControlPoints( false );
00170 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::RemoveSplineActor (  )  [virtual]

Reimplemented in manualViewBullEye, and manualViewPoints.

Definition at line 151 of file manualViewBaseContour.cpp.

References _contourVtkActor, _wxvtkbaseview, and wxVtkBaseView::GetRenderer().

Referenced by RemoveCompleteContourActor().

00152 {
00153         vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer();
00154         if (_contourVtkActor!=NULL)
00155                 theRenderer->RemoveActor( _contourVtkActor );
00156 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::RemoveTextActor (  ) 

Definition at line 192 of file manualViewBaseContour.cpp.

References _textActor, _wxvtkbaseview, and wxVtkBaseView::GetRenderer().

Referenced by RemoveCompleteContourActor().

00193 {
00194         _wxvtkbaseview->GetRenderer()->RemoveActor2D( _textActor );
00195 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::Save ( FILE *  pFile  )  [virtual]

Reimplemented in manualViewContour.

Definition at line 70 of file manualViewBaseContour.cpp.

References GetType().

00071 {
00072         fprintf(pFile,"TypeView %d\n", GetType() );
00073 }

Here is the call graph for this function:

void manualViewBaseContour::SelectAllPoints ( bool  select  ) 

Definition at line 455 of file manualViewBaseContour.cpp.

References _lstViewPoints, and SelectPoint().

00456 {
00457         int i,size=_lstViewPoints.size();
00458         for (i=0;i<size;i++){
00459                 SelectPoint(i,select);
00460         }
00461 }

Here is the call graph for this function:

void manualViewBaseContour::SelectAllPossibleSelected ( bool  select  ) 

Definition at line 484 of file manualViewBaseContour.cpp.

References _lstViewPoints, and SetPointPosibleSelected().

Referenced by manualContour3VControler::MouseMove_Others(), SelectPosiblePoint(), and manualView3DContour::SelectPosiblePoint().

00485 {
00486         int i,size=_lstViewPoints.size();
00487         for (i=0;i<size;i++){
00488                 SetPointPosibleSelected(i,select);
00489         }
00490 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::SelectLstPoints (  ) 

Definition at line 450 of file manualViewBaseContour.cpp.

00451 {
00452         // ToDo
00453 }

void manualViewBaseContour::SelectPoint ( int  i,
bool  select 
)

Definition at line 445 of file manualViewBaseContour.cpp.

References _lstViewPoints.

Referenced by SelectAllPoints().

00446 {
00447         _lstViewPoints[i]->SetSelected(select);
00448 }

Here is the caller graph for this function:

bool manualViewBaseContour::SelectPosibleContour ( int  x,
int  y,
int  z 
)

Definition at line 504 of file manualViewBaseContour.cpp.

References _lstViewPoints, _posibleSelected, _selected, GetEditable(), GetIdPoint(), ifTouchContour(), and SetPosibleSelected().

Referenced by manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), manualCircleControler::MouseMove(), and manualContourBaseControler::MouseReleaseLeft().

00505 {
00506         bool result=false;
00507         SetPosibleSelected(result);
00508     int id = GetIdPoint(x,y,z);
00509         
00510         if( !GetEditable() && !_selected && id!= -1)
00511         {
00512                 result=true;
00513                 _posibleSelected=true;          
00514         }
00515         else
00516         {
00517                 if ( (GetEditable()==true) && (id==-1 ) && (this->_lstViewPoints.size()>=2) )
00518                 {
00519                         if (ifTouchContour(x,y,z)==true)
00520                         {
00521                                 result=true;
00522                                 SetPosibleSelected(result);
00523                         }
00524                 }
00525 
00526                 if (GetEditable()==false)
00527                 {
00528                         if (ifTouchContour(x,y,z)==true)
00529                         {
00530                                 result=true;
00531                                 SetPosibleSelected(result);
00532                         }
00533                 }
00534 
00535         }
00536         return result;
00537 }

Here is the call graph for this function:

Here is the caller graph for this function:

int manualViewBaseContour::SelectPosiblePoint ( int  x,
int  y,
int  z 
) [virtual]

Reimplemented in manualView3DContour.

Definition at line 492 of file manualViewBaseContour.cpp.

References GetIdPoint(), SelectAllPossibleSelected(), and SetPointPosibleSelected().

Referenced by manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and manualCircleControler::MouseMove().

00493 {
00494         SelectAllPossibleSelected(false);
00495 
00496     int id = GetIdPoint(x,y,z);
00497         if (id!=-1)
00498         {
00499                 SetPointPosibleSelected(id,true);
00500         }
00501         return id;
00502 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::SetColorEditContour ( double  r,
double  g,
double  b 
)
void manualViewBaseContour::SetColorNormalContour ( double  r,
double  g,
double  b 
)
void manualViewBaseContour::SetColorSelectContour ( double  r,
double  g,
double  b 
)

Definition at line 668 of file manualViewBaseContour.cpp.

References _coulorSelection_b, _coulorSelection_g, and _coulorSelection_r.

Referenced by CopyAttributesTo().

00669 {
00670         _coulorSelection_r = r;
00671         _coulorSelection_g = g;
00672         _coulorSelection_b = b;
00673 }

Here is the caller graph for this function:

void manualViewBaseContour::SetEditable ( bool *  condition  ) 

Definition at line 419 of file manualViewBaseContour.cpp.

References _editable.

Referenced by manualContourBaseControler::SetModelView().

00420 {
00421         _editable = condition;
00422 }

Here is the caller graph for this function:

void manualViewBaseContour::SetIfViewControlPoints ( bool  ifShow  ) 

Definition at line 463 of file manualViewBaseContour.cpp.

References _viewControlPoints.

Referenced by AddControlPoints(), CopyAttributesTo(), and RemoveControlPoints().

00464 {
00465         _viewControlPoints = ifShow;
00466 }

Here is the caller graph for this function:

void manualViewBaseContour::SetModel ( manualBaseModel manContModel  ) 
void manualViewBaseContour::SetPointPosibleSelected ( int  id,
bool  select 
)

Definition at line 474 of file manualViewBaseContour.cpp.

References _lstViewPoints.

Referenced by manualContour3VControler::MouseMove_Others(), SelectAllPossibleSelected(), SelectPosiblePoint(), and manualView3DContour::SelectPosiblePoint().

00475 {
00476         _lstViewPoints[id]->SetPosibleSelected(select);
00477 }

Here is the caller graph for this function:

void manualViewBaseContour::SetPointSelected ( int  id,
bool  select 
)

Definition at line 479 of file manualViewBaseContour.cpp.

References _lstViewPoints.

00480 {
00481         _lstViewPoints[id]->SetSelected(select);
00482 }

void manualViewBaseContour::SetPosibleSelected ( bool  posibleSelected  ) 

Definition at line 409 of file manualViewBaseContour.cpp.

References _posibleSelected.

Referenced by CopyAttributesTo(), manualContour3VControler::MouseMove_Others(), and SelectPosibleContour().

00410 {
00411         _posibleSelected=posibleSelected;
00412 }

Here is the caller graph for this function:

void manualViewBaseContour::SetRange ( double  range  ) 
void manualViewBaseContour::SetSelected ( bool  selected  ) 

Definition at line 404 of file manualViewBaseContour.cpp.

References _selected.

Referenced by CopyAttributesTo(), manualContourControler::MouseClickLeft(), and manualContourBaseControler::SetEditable().

00405 {
00406         _selected=selected;
00407 }

Here is the caller graph for this function:

void manualViewBaseContour::SetShowText ( bool  ok  ) 

Definition at line 893 of file manualViewBaseContour.cpp.

References _show_text, and _textActor.

Referenced by wxWidgetMesure2D::OnVisibleInformation().

00894 {
00895         _show_text = ok;
00896         if (_show_text==false)
00897         {
00898                 _textActor->SetInput("00");
00899         }
00900 }

Here is the caller graph for this function:

void manualViewBaseContour::SetSpacing ( double  spc[3]  ) 

Definition at line 914 of file manualViewBaseContour.cpp.

References _spc.

Referenced by wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualViewBullEye::ConstructVTKObjects(), CopyAttributesTo(), and wxMaracasImageBrowser02::LoadData().

00915 {
00916         _spc[0] = spc[0];
00917         _spc[1] = spc[1];
00918         _spc[2] = spc[2];
00919 }

Here is the caller graph for this function:

void manualViewBaseContour::SetVisible ( bool  ok  ) 

Definition at line 872 of file manualViewBaseContour.cpp.

References _contourVtkActor, _lstViewPoints, and _textActor.

Referenced by wxWidgetMesure2D::OnActiveMessureTool(), wxWidgetMesure2D::OnVisibleMessureTool(), manualContourContainer::setLumenVisibility(), and manualContourContainer::setWallVisibility().

00873 {
00874         double opacity;
00875         if (ok==true)
00876         {
00877                 opacity=1;
00878         } else {
00879                 opacity=0.5;
00880         }
00881         vtkActor *actor;
00882         int i,size=_lstViewPoints.size();
00883         for (i=0;i<size;i++){
00884                 actor = _lstViewPoints[i]->GetVtkActor();
00885                 actor->GetProperty()->SetOpacity( opacity );
00886         }
00887         _contourVtkActor->GetProperty()->SetOpacity( opacity );
00888         _textActor->GetProperty()->SetOpacity( opacity );
00889         _textActor->SetInput("00");
00890 
00891 }

Here is the caller graph for this function:

void manualViewBaseContour::SetWidthLine ( double  width  ) 

Definition at line 211 of file manualViewBaseContour.cpp.

References _lstViewPoints, _widthline, and UpdateColorActor().

Referenced by manualViewBullEye::ConstructVTKObjects().

00212 {
00213         _widthline = width;
00214         this->UpdateColorActor();
00215 
00216         // for the control points
00217         int id, size = _lstViewPoints.size();
00218         for( id=0; id<size; id++)
00219         {
00220                 this->_lstViewPoints[id]->SetWidthLine(_widthline);
00221         }
00222 
00223 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::SetWxVtkBaseView ( wxVtkBaseView wxvtkbaseview  ) 
void manualViewBaseContour::SetZ ( int  z  ) 
void manualViewBaseContour::TransfromCoordViewWorld ( double &  X,
double &  Y,
double &  Z,
int  type = 2 
) [virtual]

Reimplemented in manualView3DContour, and manualViewPerpPlaneContour.

Definition at line 736 of file manualViewBaseContour.cpp.

References _wxvtkbaseview, and wxVtkBaseView::TransFromCoordScreenToWorld().

Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), GetIdPoint(), manualView3VContour::GetIdPoint(), manualViewRoi::ifTouchContour(), manualViewPoints::ifTouchContour(), manualViewContour::ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewRotationTool::InitMove(), manualViewRoi::InitMove(), manualViewLine::InitMove(), manualViewContour::InitMove(), manualViewCircle::InitMove(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualViewRotationTool::MoveContour(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), manualViewContour::MoveContour(), manualViewCircle::MoveContour(), manualContourBaseControler::SetPoint(), manualContour3VControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), and manualContourBaseControler::SetPointZ().

00737 {
00738         _wxvtkbaseview->TransFromCoordScreenToWorld(X, Y, Z,false, type);
00739 
00740 
00741 //EED 27 sep 2007
00742 //   //EEDx6
00743 //      wxVtk2DBaseView *wxvtk2Dbaseview = (wxVtk2DBaseView*)_wxvtkbaseview;
00744 //      wxvtk2Dbaseview->TransformCoordinate_spacing_ModelToView(X,Y,Z);
00745 
00746 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::UnSelectAllPoints (  ) 

Definition at line 553 of file manualViewBaseContour.cpp.

References _lstViewPoints, Refresh(), and UnSelectPoint().

00553                                              {
00554         int i,size=_lstViewPoints.size();
00555         for (i=0;i<size;i++){
00556                 UnSelectPoint(i);
00557         }
00558         Refresh();
00559 }

Here is the call graph for this function:

void manualViewBaseContour::UnSelectLstPoints (  ) 

Definition at line 549 of file manualViewBaseContour.cpp.

00549                                              {
00550         // ToDo
00551 }

void manualViewBaseContour::UnSelectPoint ( int  i  ) 

Definition at line 544 of file manualViewBaseContour.cpp.

References _lstViewPoints, and Refresh().

Referenced by UnSelectAllPoints().

00544                                               {
00545         _lstViewPoints[i]->SetSelected(false);
00546         Refresh();
00547 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::UpdateColorActor (  ) 

Definition at line 682 of file manualViewBaseContour.cpp.

References _contourVtkActor, _coulorEdit_b, _coulorEdit_g, _coulorEdit_r, _coulorNormal_b, _coulorNormal_g, _coulorNormal_r, _coulorSelection_b, _coulorSelection_g, _coulorSelection_r, _posibleSelected, _selected, _widthline, and GetEditable().

Referenced by ConstructVTKObjects(), Refresh(), and SetWidthLine().

00683 {
00684         if (_contourVtkActor!=NULL)
00685         {
00686                 _contourVtkActor->GetProperty()->SetLineWidth( _widthline );
00687                 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorNormal_r , _coulorNormal_g , _coulorNormal_b );
00688                 if (_posibleSelected || (_posibleSelected && GetEditable() ) )
00689                 {
00690                         _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorEdit_r , _coulorEdit_g , _coulorEdit_b );
00691                 }
00692                 if( _selected )
00693                 {
00694                         _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorSelection_r , _coulorSelection_g , _coulorSelection_b );
00695                 }
00696         }
00697 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::UpdateViewPoint ( int  id  )  [virtual]

Reimplemented in manualView3VContour, and manualViewPerpPlaneContour.

Definition at line 314 of file manualViewBaseContour.cpp.

References _lstViewPoints, _manContModel, _range, manualBaseModel::GetManualPoint(), manualPoint::GetX(), manualPoint::GetY(), and manualPoint::GetZ().

Referenced by manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualViewRotationTool::MoveContour(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), manualViewCircle::MoveContour(), Refresh(), manualContourBaseControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), manualContourBaseControler::SetPointZ(), manualRoiControler::SetRoi(), and UpdateViewPoints().

00315 {
00316         manualPoint             *mp             = _manContModel->GetManualPoint(id);
00317 
00318 //EEDx6
00319                         double XX=mp->GetX(),YY=mp->GetY(),ZZ=mp->GetZ();
00320 //                      wxVtk2DBaseView *wxvtk2Dbasevie = (wxVtk2DBaseView*)this->GetWxVtkBaseView();
00321 //                      wxvtk2Dbasevie->TransformCoordinate_spacing_ModelToView(XX,YY,ZZ);
00322 
00323         _lstViewPoints[id]->SetPositionXY( XX , YY ,_range, ZZ );
00324 }

Here is the call graph for this function:

Here is the caller graph for this function:

void manualViewBaseContour::UpdateViewPoints (  )  [virtual]

Definition at line 327 of file manualViewBaseContour.cpp.

References _lstViewPoints, and UpdateViewPoint().

Referenced by manualViewContour::MoveContour().

00328 {
00329         int id, size = _lstViewPoints.size();
00330         for( id=0; id<size; id++)
00331         {
00332                 UpdateViewPoint( id );
00333         }
00334 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

vtkPolyDataMapper* manualViewBaseContour::_bboxMapper [private]

Definition at line 208 of file manualViewBaseContour.h.

Referenced by GetEditable(), and SetEditable().

vtkPolyData* manualViewBaseContour::_pd [private]
vtkPoints* manualViewBaseContour::_pts [protected]
double manualViewBaseContour::_range [protected]

Definition at line 213 of file manualViewBaseContour.h.

Referenced by manualViewBaseContour(), Refresh(), and SetShowText().

double manualViewBaseContour::_spc[3] [protected]
vtkTextActor* manualViewBaseContour::_textActor [protected]

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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1