//=====
#include "bbcreaVtkActor.h"
#include "bbcreaVtkPackage.h"
+#include "vtkProperty.h"
+
+
namespace bbcreaVtk
{
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- vtkProp3D* vtkactor=bbGetInputIn();
-// vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
+ vtkProp3D* vtkprop3D=bbGetInputIn();
+
+
+ std::string className = vtkprop3D->GetClassName();
+ std::string wantedClass = "vtkOpenGLActor";
+ if(className == wantedClass)
+ {
+ ((vtkActor*)vtkprop3D)->GetProperty()->SetOpacity( bbGetInputOpacity() );
+ }
if ( bbGetInputTransform()!=NULL )
{
- vtkactor->SetUserTransform( bbGetInputTransform() );
+ vtkprop3D->SetUserTransform( bbGetInputTransform() );
}
// bbSetOutputOut( vtkactor );
if (bbGetInputActive()==true )
{
- bbGetInputRenderer()->AddActor( vtkactor );
+ bbGetInputRenderer()->AddActor( vtkprop3D );
} else {
- bbGetInputRenderer()->RemoveActor( vtkactor );
+ bbGetInputRenderer()->RemoveActor( vtkprop3D );
} //if Active
backActive=bbGetInputActive();
} // if Renderer
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
- BBTK_DECLARE_INPUT(Point,std::vector<double>);
BBTK_DECLARE_OUTPUT(ArrowSource,vtkPolyData*);
BBTK_PROCESS(Process);
void Process();
BBTK_BEGIN_DESCRIBE_BLACK_BOX(GenerateArrowSource,bbtk::AtomicBlackBox);
BBTK_NAME("GenerateArrowSource");
BBTK_AUTHOR("Monica ESPINOSA");
-BBTK_DESCRIPTION("No Description.");
+BBTK_DESCRIPTION("To be used as the source for a glyph");
BBTK_CATEGORY("empty");
-BBTK_INPUT(GenerateArrowSource,Point,"Coordinate of Point",std::vector<double>,"");
BBTK_OUTPUT(GenerateArrowSource,ArrowSource,"Arrow Representation",vtkPolyData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(GenerateArrowSource);
//=====