- } else if (bbGetInputRepresentation()==1)
- {
- vtkactor->GetProperty()->SetAmbient(1);
- vtkactor->GetProperty()->SetDiffuse(1);
- vtkactor->GetProperty()->SetSpecular(0);
- } else if (bbGetInputRepresentation()==2)
- {
- vtkactor->GetProperty()->SetAmbient(0);
- vtkactor->GetProperty()->SetDiffuse(1);
- vtkactor->GetProperty()->SetSpecular(0);
- }
-
- vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
-
- vtkactor->GetProperty()->SetColor( bbGetInputColour()[0],
- bbGetInputColour()[1],
- bbGetInputColour()[2] );
-
- vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
-
-
- if ( bbGetInputTransform()!=NULL )
- {
- vtkactor->SetUserTransform( bbGetInputTransform() );
- }
-
- bbSetOutputOut( vtkactor );
-
- // Interface Update
- if ((actorAdded==false) && (bbGetInputRenderer()!=NULL ))
- {
- actorAdded=true;
- bbGetInputRenderer()->AddActor( vtkactor );
- } // actorAdded
-
- if (bbGetInputScalarVisibility()==true )
- {
- polydatamapper->ScalarVisibilityOn();
- if (bbGetInputScalarVisibilityOn_LookupTable()!=NULL)
- {
+ } else if (bbGetInputRepresentation()==1)
+ {
+ vtkactor->GetProperty()->SetAmbient(1);
+ vtkactor->GetProperty()->SetDiffuse(1);
+ vtkactor->GetProperty()->SetSpecular(0);
+ } else if (bbGetInputRepresentation()==2)
+ {
+ vtkactor->GetProperty()->SetAmbient(0);
+ vtkactor->GetProperty()->SetDiffuse(1);
+ vtkactor->GetProperty()->SetSpecular(0);
+ }
+ vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
+ vtkactor->GetProperty()->SetColor( bbGetInputColour()[0],
+ bbGetInputColour()[1],
+ bbGetInputColour()[2] );
+ vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
+ if ( bbGetInputTransform()!=NULL )
+ {
+ vtkactor->SetUserTransform( bbGetInputTransform() );
+ }
+ bbSetOutputOut( vtkactor );
+
+
+/* / >>>>
+ AAAAA
+ vtkArrowSource *arrow = vtkArrowSource::New();
+ vtkPolyDataNormals *normals = vtkPolyDataNormals::New();
+ normals->SetInputData( bbGetInputIn() );
+ vtkGlyph3D *glyph = vtkGlyph3D::New();
+ glyph->SetInputData(normals->GetOutput() );
+ glyph->SetSourceData(arrow->GetOutput() );
+ glyph->SetVectorModeToUseNormal();
+ glyph->SetScaleModeToScaleByVector();
+ glyph->SetScaleFactor(10);
+ vtkPolyDataMapper *mapper2 = vtkPolyDataMapper::New();
+ mapper2->SetInputData( glyph->GetOutput() );
+ vtkActor *actor2 = vtkActor::New();
+ actor2->SetMapper(mapper2);
+ actor2->GetProperty()->SetColor(1, 0, 0);
+*/
+
+
+
+ // Interface Update
+ if ((actorAdded==false) && (bbGetInputRenderer()!=NULL ))
+ {
+ actorAdded=true;
+ bbGetInputRenderer()->AddActor( vtkactor );
+//--
+// bbGetInputRenderer()->AddActor( actor2 );
+//--
+
+
+ } // actorAdded
+ if (bbGetInputScalarVisibility()==true )
+ {
+ polydatamapper->ScalarVisibilityOn();
+ if (bbGetInputScalarVisibilityOn_LookupTable()!=NULL)
+ {