2 #include "HYDROData_DummyObject3D.h"
4 #include "HYDROData_Object.h"
6 #include <TopoDS_Shape.hxx>
11 IMPLEMENT_STANDARD_HANDLE(HYDROData_DummyObject3D,HYDROData_Entity)
12 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_DummyObject3D,HYDROData_Entity)
14 HYDROData_DummyObject3D::HYDROData_DummyObject3D()
19 HYDROData_DummyObject3D::~HYDROData_DummyObject3D()
23 QString HYDROData_DummyObject3D::GetName() const
27 Handle(HYDROData_Object) aFatherObj = GetObject();
28 if ( !aFatherObj.IsNull() )
29 aName = aFatherObj->GetName();
36 bool HYDROData_DummyObject3D::CanBeUpdated() const
41 bool HYDROData_DummyObject3D::CanRemove()
46 Handle(HYDROData_Object) HYDROData_DummyObject3D::GetObject() const
48 return Handle(HYDROData_Object)::DownCast( GetFatherObject() );
51 TopoDS_Shape HYDROData_DummyObject3D::GetShape() const
53 TopoDS_Shape aResShape;
55 Handle(HYDROData_Object) aFatherObj = GetObject();
56 if ( !aFatherObj.IsNull() )
57 aResShape = aFatherObj->GetShape3D();
62 QColor HYDROData_DummyObject3D::GetFillingColor() const
64 QColor aResColor( Qt::yellow );
66 Handle(HYDROData_Object) aFatherObj = GetObject();
67 if ( !aFatherObj.IsNull() )
68 aResColor = aFatherObj->GetFillingColor();
73 QColor HYDROData_DummyObject3D::GetBorderColor() const
75 QColor aResColor( Qt::transparent );
77 Handle(HYDROData_Object) aFatherObj = GetObject();
78 if ( !aFatherObj.IsNull() )
79 aResColor = aFatherObj->GetBorderColor();