polyData->GetPointData()->AddArray(colors);
vtkSmartPointer<vtkTubeFilter> tube = vtkSmartPointer<vtkTubeFilter>::New();
+ tube->CappingOn();
tube->SetInput(polyData);
tube->SetNumberOfSides(nTv);
tube->SetVaryRadiusToVaryRadiusByAbsoluteScalar();
vtkSmartPointer<vtkPolyDataMapper> mapper = vtkSmartPointer<vtkPolyDataMapper>::New();
mapper->SetInputConnection(tube->GetOutputPort());
+// mapper->ScalarVisibilityOn();
+// mapper->SetScalarModeToUsePointFieldData();
+
mapper->ScalarVisibilityOn();
+
+// mapper->SetScalarModeToUseCellData();
+// mapper->SetScalarModeToUseCellFieldData();
+// mapper->SetScalarModeToUseFieldData();
+// mapper->SetScalarModeToUsePointData();
mapper->SetScalarModeToUsePointFieldData();
+
+ mapper->SetColorModeToDefault();
+// mapper->SetColorModeToMapScalars();
+
+
mapper->SelectColorArray("Colors");
// vtkSmartPointer<vtkActor> actor =vtkSmartPointer<vtkActor>::New();
--- /dev/null
+//=====
+// 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)
+//=====
+#include "bbcreaMaracasVisuwxVtkBaseViewToVtkRenderer.h"
+#include "bbcreaMaracasVisuPackage.h"
+namespace bbcreaMaracasVisu
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,wxVtkBaseViewToVtkRenderer)
+BBTK_BLACK_BOX_IMPLEMENTATION(wxVtkBaseViewToVtkRenderer,bbtk::AtomicBlackBox);
+//=====
+// 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)
+//=====
+void wxVtkBaseViewToVtkRenderer::Process()
+{
+
+// THE MAIN PROCESSING METHOD BODY
+// Here we simply set the input 'In' value to the output 'Out'
+// And print out the output value
+// INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
+// void bbSet{Input|Output}NAME(const TYPE&)
+// const TYPE& bbGet{Input|Output}NAME() const
+// Where :
+// * NAME is the name of the input/output
+// (the one provided in the attribute 'name' of the tag 'input')
+// * TYPE is the C++ type of the input/output
+// (the one provided in the attribute 'type' of the tag 'input')
+
+ bbSetOutputOut( bbGetInputIn()->GetRenderer() );
+
+}
+//=====
+// 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)
+//=====
+void wxVtkBaseViewToVtkRenderer::bbUserSetDefaultValues()
+{
+
+// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
+// Here we initialize the input 'In' to 0
+ bbSetInputIn(0);
+
+}
+//=====
+// 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)
+//=====
+void wxVtkBaseViewToVtkRenderer::bbUserInitializeProcessing()
+{
+
+// THE INITIALIZATION METHOD BODY :
+// Here does nothing
+// but this is where you should allocate the internal/output pointers
+// if any
+
+
+}
+//=====
+// 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)
+//=====
+void wxVtkBaseViewToVtkRenderer::bbUserFinalizeProcessing()
+{
+
+// THE FINALIZATION METHOD BODY :
+// Here does nothing
+// but this is where you should desallocate the internal/output pointers
+// if any
+
+}
+}
+// EO namespace bbcreaMaracasVisu
+
+
--- /dev/null
+//=====
+// 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)
+//=====
+#ifndef __bbcreaMaracasVisuwxVtkBaseViewToVtkRenderer_h_INCLUDED__
+#define __bbcreaMaracasVisuwxVtkBaseViewToVtkRenderer_h_INCLUDED__
+#include "bbcreaMaracasVisu_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+#include "vtkRenderer.h"
+#include "wxVtkBaseView.h"
+
+namespace bbcreaMaracasVisu
+{
+
+class bbcreaMaracasVisu_EXPORT wxVtkBaseViewToVtkRenderer
+ :
+ public bbtk::AtomicBlackBox
+{
+ BBTK_BLACK_BOX_INTERFACE(wxVtkBaseViewToVtkRenderer,bbtk::AtomicBlackBox);
+//=====
+// 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(In,wxVtkBaseView*);
+ BBTK_DECLARE_OUTPUT(Out,vtkRenderer*);
+ BBTK_PROCESS(Process);
+ void Process();
+//=====
+// 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_BEGIN_DESCRIBE_BLACK_BOX(wxVtkBaseViewToVtkRenderer,bbtk::AtomicBlackBox);
+BBTK_NAME("wxVtkBaseViewToVtkRenderer");
+BBTK_AUTHOR("Info-Dev");
+BBTK_DESCRIPTION("wxVtkBaseView* To vtkRenderer*");
+BBTK_CATEGORY("");
+BBTK_DEFAULT_ADAPTOR();
+BBTK_INPUT(wxVtkBaseViewToVtkRenderer,In,"wxVtkBaseView",wxVtkBaseView*,"");
+BBTK_OUTPUT(wxVtkBaseViewToVtkRenderer,Out,"vtkRenderer",vtkRenderer*,"");
+BBTK_END_DESCRIBE_BLACK_BOX(wxVtkBaseViewToVtkRenderer);
+//=====
+// 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)
+//=====
+}
+// EO namespace bbcreaMaracasVisu
+
+#endif // __bbcreaMaracasVisuwxVtkBaseViewToVtkRenderer_h_INCLUDED__
+
}
if ((ii>=delta2) && (ii<=delta3)) // iRed
{
- thresholdTable->SetTableValue( i , 1 , (delta-iRed)/delta , 0 , 1);
+ thresholdTable->SetTableValue( i , (delta-iRed)/delta, 0 , 0 , 1);
iRed++;
}
} // for