1 // Created on: 2006-05-25
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2006-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef VrmlData_Geometry_HeaderFile
17 #define VrmlData_Geometry_HeaderFile
19 #include <VrmlData_Node.hxx>
20 #include <TopoDS_TShape.hxx>
23 * Implementation of the Geometry node.
24 * Contains the topological representation (TopoDS_Shell) of the VRML geometry
27 class VrmlData_Geometry : public VrmlData_Node
30 // ---------- PUBLIC METHODS ----------
35 inline VrmlData_Geometry ()
36 : myIsModified (Standard_True)
42 inline VrmlData_Geometry (const VrmlData_Scene& theScene,
44 : VrmlData_Node (theScene, theName),
45 myIsModified (Standard_True)
49 * Query the shape. This method checks the flag myIsModified; if True it
50 * should rebuild the shape presentation.
52 Standard_EXPORT virtual const Handle(TopoDS_TShape)& TShape () = 0;
55 // ---------- PROTECTED METHODS ----------
60 inline void SetTShape (const Handle(TopoDS_TShape)& theTShape)
61 { myTShape = theTShape; }
66 inline void SetModified () { myIsModified= Standard_True; }
70 // ---------- PROTECTED FIELDS ----------
72 Handle(TopoDS_TShape) myTShape;
73 Standard_Boolean myIsModified;
76 // Declaration of CASCADE RTTI
77 DEFINE_STANDARD_RTTI (VrmlData_Geometry)
80 // Definition of HANDLE object using Standard_DefineHandle.hxx
81 DEFINE_STANDARD_HANDLE (VrmlData_Geometry, VrmlData_Node)