0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / VrmlData / VrmlData_UnknownNode.hxx
1 // Created on: 2006-10-08
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2006-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef VrmlData_UnknownNode_HeaderFile
17 #define VrmlData_UnknownNode_HeaderFile
18
19 #include <VrmlData_Node.hxx>
20 #include <TCollection_AsciiString.hxx>
21
22 /**
23  * Definition of UnknownNode -- placeholder for node types that
24  * are not processed now.
25  */
26
27 class VrmlData_UnknownNode : public VrmlData_Node
28 {
29  public:
30   // ---------- PUBLIC METHODS ----------
31
32   /**
33    * Empty Constructor.
34    */
35   inline VrmlData_UnknownNode () {}
36
37   /**
38    * Constructor.
39    */
40   inline VrmlData_UnknownNode           (const VrmlData_Scene& theScene,
41                                          const char            * theName = 0L,
42                                          const char            * theTitle= 0L)
43     : VrmlData_Node     (theScene, theName)
44   { if (theTitle) myTitle = (Standard_CString)theTitle; }
45
46   /**
47    * Read the unknown node, till the last closing brace of it.
48    */
49   Standard_EXPORT virtual VrmlData_ErrorStatus
50                         Read            (VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
51
52   /**
53    * Query the title of the unknown node.
54    */
55   inline const TCollection_AsciiString&
56                         GetTitle        () const
57   { return myTitle; }
58
59   /**
60    * Check if the Node is non-writeable -- always returns true.
61    */
62   Standard_EXPORT virtual Standard_Boolean
63                         IsDefault       () const Standard_OVERRIDE;
64
65  private:
66   // ---------- PRIVATE FIELDS ----------
67
68   TCollection_AsciiString myTitle;
69
70  public:
71 // Declaration of CASCADE RTTI
72 DEFINE_STANDARD_RTTI_INLINE(VrmlData_UnknownNode,VrmlData_Node)
73 };
74
75 // Definition of HANDLE object using Standard_DefineHandle.hxx
76 DEFINE_STANDARD_HANDLE (VrmlData_UnknownNode, VrmlData_Node)
77
78
79 #endif