//int manualViewCircle::GetType() 3;
//int manualViewStar::GetType() 4;
//int manualViewLine::GetType() 6;
//int manualViewCircle::GetType() 3;
//int manualViewStar::GetType() 4;
//int manualViewLine::GetType() 6;
// ----------------------------------------------------------------------------
void manualViewBaseContour::AddTextActor()
{
// ----------------------------------------------------------------------------
void manualViewBaseContour::AddTextActor()
{
}
// ----------------------------------------------------------------------------
void manualViewBaseContour::RemoveTextActor()
{
}
// ----------------------------------------------------------------------------
void manualViewBaseContour::RemoveTextActor()
{
}
// ----------------------------------------------------------------------------
void manualViewBaseContour::DeleteVtkObjects()
}
// ----------------------------------------------------------------------------
void manualViewBaseContour::DeleteVtkObjects()
// ----------------------------------------------------------------------------
void manualViewBaseContour::ConstructVTKObjects()
{
// ----------------------------------------------------------------------------
void manualViewBaseContour::ConstructVTKObjects()
{
//JSTG 29-02-08 -----------------------------------------------
//int i , nps = _sizePointsContour;
int i;
int nps = _manContModel->GetNumberOfPointsSpline();
//-------------------------------------------------------------
//JSTG 29-02-08 -----------------------------------------------
//int i , nps = _sizePointsContour;
int i;
int nps = _manContModel->GetNumberOfPointsSpline();
//-------------------------------------------------------------
for (i=0 ; i<nps ; i++){
_pts->SetPoint(i, 0 , 0 , 0 );
}
// This is for the boundaring inicialisation
//EED 29Mars2009
for (i=0 ; i<nps ; i++){
_pts->SetPoint(i, 0 , 0 , 0 );
}
// This is for the boundaring inicialisation
//EED 29Mars2009
- _pts->SetPoint(0, 0 , 0 , -1000 );
- _pts->SetPoint(1, 0 , 0 , 1000 );
-// _pts->SetPoint(0, -1000 , -1000 , -1000 );
-// _pts->SetPoint(1, 1000 , 1000 , 1000 );
-
+ //_pts->SetPoint(0, 0 , 0 , -1000 );
+ //_pts->SetPoint(1, 0 , 0 , 1000 );
+ _pts->SetPoint(0, -1000 , -1000 , -1000 );
+ _pts->SetPoint(1, 1000 , 1000 , 1000 );
vtkCellArray *lines = vtkCellArray::New();
lines->InsertNextCell( nps /* +1 */ );
for ( i=0 ; i<nps+1 ; i++ ){
lines->InsertCellPoint(i % nps );
}
vtkCellArray *lines = vtkCellArray::New();
lines->InsertNextCell( nps /* +1 */ );
for ( i=0 ; i<nps+1 ; i++ ){
lines->InsertCellPoint(i % nps );
}
// Text
_textActor = vtkTextActor::New();
// _textActor->SetDisplayPosition(200, 200);
// Text
_textActor = vtkTextActor::New();
// _textActor->SetDisplayPosition(200, 200);
tprop->SetFontFamilyToArial();
tprop->SetColor(0, 0, 1);
}
tprop->SetFontFamilyToArial();
tprop->SetColor(0, 0, 1);
}
// ----------------------------------------------------------------------------
void manualViewBaseContour::CreateNewContour()
{
// ----------------------------------------------------------------------------
void manualViewBaseContour::CreateNewContour()
{
bool result=false;
SetPosibleSelected(result);
int id = GetIdPoint(x,y,z);
bool result=false;
SetPosibleSelected(result);
int id = GetIdPoint(x,y,z);
_manContModel=manContModel;
}
// ----------------------------------------------------------------------------
_manContModel=manContModel;
}
// ----------------------------------------------------------------------------
ii=_manContModel->GetIdPoint(xx,yy,zz,_range,-1);
}
return ii;
ii=_manContModel->GetIdPoint(xx,yy,zz,_range,-1);
}
return ii;
-void manualViewBaseContour::TransfromeCoordViewWorld(double &X, double &Y, double &Z, int type) // Virtual
+void manualViewBaseContour::TransfromCoordViewWorld(double &X, double &Y, double &Z, int type) // Virtual
- _wxvtkbaseview->TransfromeCoordScreenToWorld(X, Y, Z, type);
+ _wxvtkbaseview->TransFromCoordScreenToWorld(X, Y, Z,false, type);