#include "bbmaracasvisuDrawAxisTree3D.h"
#include "bbcreaMaracasVisuPackage.h"
+#include "vtkLinearTransform.h"
+
namespace bbcreaMaracasVisu
{
for (i=iGeneral;i<size;i++)
{
//multiplicar ver parametros spacing, en maracas cuando se toca la imagen y se ve dycom
- //hay parámetro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
+ //hay par·metro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
allPoints->InsertNextPoint( bbGetInputlstPointX()[i]*spc[0],
bbGetInputlstPointY()[i]*spc[1],
bbGetInputlstPointZ()[i]*spc[2] );
// color
double r,g,b;
- if ( (iAxis*3+1) < bbGetInputColour().size() ){
+ if ( (iAxis*3+1) < (int)(bbGetInputColour().size()) ){
r = bbGetInputColour()[0+iAxis*3];
g = bbGetInputColour()[1+iAxis*3];
b = bbGetInputColour()[2+iAxis*3];
vtkactor->GetProperty()->SetColor( 1,0,0 );
vtkactor->GetProperty()->SetLineWidth( 3 );
+ if ( bbGetInputTransform()!=NULL )
+ {
+ vtkactor->SetUserTransform( bbGetInputTransform() );
+ }
+
// Interface Update
if (bbGetInputRenderer()!=NULL )
{
}
-void DrawAxisTree3D::bbUserConstructor()
+void DrawAxisTree3D::bbUserSetDefaultValues()
{
bbSetInputiAxis(0);
std::vector<double> colour;
}
-void DrawAxisTree3D::bbUserCopyConstructor()
-{
-}
-
-void DrawAxisTree3D::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void DrawAxisTree3D::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void DrawAxisTree3D::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu