//----------------------------------------------------------------------------
void LayerImageBase::SetwxVtkBaseView(wxVtkBaseView *baseview)
{
- printf("EED LayerImageBase::SetwxVtkBaseView start baseview:%p \n", baseview);
if (_baseView==NULL)
{
_baseView = baseview;
vtkInteractorStyleBaseView *isbv = (vtkInteractorStyleBaseView*)(_baseView->GetInteractorStyleBaseView());
isbv->AddInteractorStyleMaracas( new ColorLayerImageBasevtkInteractor(this) );
} // if _baseView
- printf("EED LayerImageBase::SetwxVtkBaseView end \n");
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void LayerImageBase::Refresh()
{
- printf("EED LayerImageBase::Refresh\n");
if (_baseView!=NULL)
{
_baseView->Refresh();
//----------------------------------------------------------------------------
void LayerImageBase::onThreshold()
{
-
- printf("EED LayerImageBase::onThreshold start \n");
-
if ((_image!=NULL) && (_baseView!=NULL))
{
double spc[3];
x = x*spc[0];
y = y*spc[1];
z = z*spc[2];
-
-
- printf("EED LayerImageBase::onThreshold z = %d spcZ%f\n" , z, spc[2]);
-
vtkCamera *camera = _baseView->GetRenderer()->GetActiveCamera();
int directionViewer=0;
directionViewer = wxvtk2dbasevie->GetDirection();
} // ParallelProjection
-printf("EED LayerImageBase::onThreshold projection = %d\n" , camera->GetParallelProjection() );
-printf("EED LayerImageBase::onThreshold direction = %d\n" , directionViewer );
-
if (!GetActorPresent())
{
_thresholdMapper->SetInput( img );
_thresholdMapper->SetLookupTable( _thresholdTable );
_thresholdActor->SetInput( _thresholdMapper->GetOutput() );
-
- printf("EED LayerImageBase::onThreshold working \n");
-
} // _image
- printf("EED LayerImageBase::onThreshold end \n");
}