#include <manualConnectorContourView.h>
Public Member Functions | |
manualConnectorContourView () | |
~manualConnectorContourView () | |
virtual void | TransfromCoordViewWorld (double &X, double &Y, double &Z, int type=2) |
void | updateStartAndEnd (double *start, double *end) |
virtual void | AddControlPoints () |
virtual void | RefreshText () |
Definition at line 61 of file manualConnectorContourView.h.
bbtk::manualConnectorContourView::manualConnectorContourView | ( | ) |
bbtk::manualConnectorContourView::~manualConnectorContourView | ( | ) |
void bbtk::manualConnectorContourView::AddControlPoints | ( | ) | [virtual] |
Definition at line 76 of file manualConnectorContourView.cxx.
00077 { 00078 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00079 SetIfViewControlPoints( true ); 00080 if( _viewControlPoints ) 00081 { 00082 int i,size=_lstViewPoints.size(); 00083 //The first and last points are avoided 00084 for (i=1;i<size-1; i++) 00085 { 00086 vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor(); 00087 theRenderer->AddActor( pointActor ); 00088 } 00089 } 00090 }
void bbtk::manualConnectorContourView::RefreshText | ( | ) | [virtual] |
void bbtk::manualConnectorContourView::TransfromCoordViewWorld | ( | double & | X, | |
double & | Y, | |||
double & | Z, | |||
int | type = 2 | |||
) | [virtual] |
Definition at line 57 of file manualConnectorContourView.cxx.
00058 { 00059 // Make the conversion using the system of creaMaracasVisu 00060 _wxvtkbaseview->TransCoordScreenToWorld(X,Y,Z,type); 00061 }
void bbtk::manualConnectorContourView::updateStartAndEnd | ( | double * | start, | |
double * | end | |||
) |
Definition at line 65 of file manualConnectorContourView.cxx.
00066 { 00067 // Update contour first and last point 00068 _manContModel->MovePoint(0,start[0],start[1],start[2]); 00069 _manContModel->MovePoint(_manContModel->GetSizeLstPoints()-1,end[0],end[1],end[2]); 00070 00071 Refresh(); 00072 }