|
|
|||
File indexing completed on 2026-10-03 09:18:13
0001 // Created on: 2006-05-25 0002 // Created by: Alexander GRIGORIEV 0003 // Copyright (c) 2006-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef VrmlData_Geometry_HeaderFile 0017 #define VrmlData_Geometry_HeaderFile 0018 0019 #include <VrmlData_Node.hxx> 0020 #include <TopoDS_TShape.hxx> 0021 0022 /** 0023 * Implementation of the Geometry node. 0024 * Contains the topological representation (TopoDS_Shell) of the VRML geometry 0025 */ 0026 0027 class VrmlData_Geometry : public VrmlData_Node 0028 { 0029 public: 0030 // ---------- PUBLIC METHODS ---------- 0031 0032 /** 0033 * Empty constructor 0034 */ 0035 inline VrmlData_Geometry() 0036 : myIsModified(true) 0037 { 0038 } 0039 0040 /** 0041 * Constructor 0042 */ 0043 inline VrmlData_Geometry(const VrmlData_Scene& theScene, const char* theName) 0044 : VrmlData_Node(theScene, theName), 0045 myIsModified(true) 0046 { 0047 } 0048 0049 /** 0050 * Query the shape. This method checks the flag myIsModified; if True it 0051 * should rebuild the shape presentation. 0052 */ 0053 Standard_EXPORT virtual const occ::handle<TopoDS_TShape>& TShape() = 0; 0054 0055 protected: 0056 // ---------- PROTECTED METHODS ---------- 0057 0058 /** 0059 * Set the TShape. 0060 */ 0061 inline void SetTShape(const occ::handle<TopoDS_TShape>& theTShape) { myTShape = theTShape; } 0062 0063 /** 0064 * Mark modification 0065 */ 0066 inline void SetModified() { myIsModified = true; } 0067 0068 protected: 0069 // ---------- PROTECTED FIELDS ---------- 0070 0071 occ::handle<TopoDS_TShape> myTShape; 0072 bool myIsModified; 0073 0074 public: 0075 // Declaration of CASCADE RTTI 0076 DEFINE_STANDARD_RTTIEXT(VrmlData_Geometry, VrmlData_Node) 0077 }; 0078 0079 // Definition of HANDLE object using Standard_DefineHandle.hxx 0080 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|