-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
myPolyDataNormals(vtkPolyDataNormals::New(),true),
myActor(VTKViewer_Actor::New(),true)
{
- myStripper->SetInput(myPolyDataNormals->GetOutput());
- myPolyDataMapper->SetInput(myStripper->GetOutput());
+ myStripper->SetInputConnection(myPolyDataNormals->GetOutputPort());
+ myPolyDataMapper->SetInputConnection(myStripper->GetOutputPort());
myActor->SetMapper(myPolyDataMapper.Get());
myActor->PickableOff();
void
GEOM_DeviceActor::
-SetInput(vtkPolyData* thePolyData, bool theUseStripper)
+SetInput(vtkAlgorithmOutput* thePolyData, bool theUseStripper)
{
if(theUseStripper)
- myPolyDataNormals->SetInput(thePolyData);
+ {
+ myPolyDataNormals->SetInputConnection(thePolyData);
+ myStripper->SetInputConnection(myPolyDataNormals->GetOutputPort());
+ myPolyDataMapper->SetInputConnection(myStripper->GetOutputPort());
+ }
else
- myPolyDataMapper->SetInput(thePolyData);
+ myPolyDataMapper->SetInputConnection(thePolyData);
}
void
{
return myActor->GetProperty();
}
-
+
+void
+GEOM_DeviceActor::
+SetBackfaceProperty(vtkProperty* theProperty)
+{
+ myActor->SetBackfaceProperty(theProperty);
+}
+
+vtkProperty*
+GEOM_DeviceActor::
+GetBackfaceProperty()
+{
+ return myActor->GetBackfaceProperty();
+}
+
void
GEOM_DeviceActor::
SetVisibility(int theVisibility)