-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// 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
#include <Precision.hxx>
-#include <GEOM_Actor.h>
+#include <HYDROGUI_Actor.h>
#include <vtkScalarBarActor.h>
#include <QString>
//================================================================
void HYDROGUI_VTKPrsShape::compute()
{
+ HYDROGUI_VTKPrs::compute();
+
if ( !getObject().IsNull() )
{
buildShape();
if ( !myTopoShape.IsNull() )
{
- GEOM_Actor* anActor = GEOM_Actor::New();
+ HYDROGUI_Actor* anActor = getActor<HYDROGUI_Actor>(this);
anActor->SetShape( myTopoShape, VTK_MIN_DEFLECTION );
anActor->setDisplayMode( myDisplayMode );
anActor->setIO( getIO() );
- AddObject( anActor );
-
- anActor->Delete();
}
}
}
}
myTopoShape = aCompound;
- myDisplayMode = GEOM_Actor::eShading;
+ //myDisplayMode = GEOM_Actor::eShading;
}
void HYDROGUI_VTKPrsShape::setFace( const TopoDS_Wire& theWire,
const bool theIsUpdateViewer )
{
myTopoShape = theFace;
- myDisplayMode = GEOM_Actor::eShading;
+ //myDisplayMode = GEOM_Actor::eShading;
}
void HYDROGUI_VTKPrsShape::setShape( const TopoDS_Shape& theShape,
const bool theIsUpdateViewer )
{
myTopoShape = theShape;
- myDisplayMode = GEOM_Actor::eShading;
+ //myDisplayMode = GEOM_Actor::eShading;
}