1 // Created on: 2007-08-01
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2007-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_WorldInfo_HeaderFile
17 #define VrmlData_WorldInfo_HeaderFile
19 #include <VrmlData_Node.hxx>
22 * Data type for WorldInfo node
25 class VrmlData_WorldInfo : public VrmlData_Node
28 // ---------- PUBLIC METHODS ----------
33 inline VrmlData_WorldInfo () : myTitle (0L) {}
38 Standard_EXPORT VrmlData_WorldInfo (const VrmlData_Scene& theScene,
39 const char * theName = 0L,
40 const char * theTitle = 0L);
43 * Set or modify the title.
45 Standard_EXPORT void SetTitle (const char * theString);
48 * Add a string to the list of info strings.
50 Standard_EXPORT void AddInfo (const char * theString);
53 * Query the title string.
55 inline const char * Title () const
59 * Return the iterator of Info strings.
61 inline NCollection_List <const char *>::Iterator
66 * Create a copy of this node.
67 * If the parameter is null, a new copied node is created. Otherwise new node
68 * is not created, but rather the given one is modified.
70 Standard_EXPORT virtual Handle(VrmlData_Node)
71 Clone (const Handle(VrmlData_Node)& theOther) const;
74 * Read the Node from input stream.
76 Standard_EXPORT virtual VrmlData_ErrorStatus
77 Read (VrmlData_InBuffer& theBuffer);
80 * Write the Node to the Scene output.
82 Standard_EXPORT virtual VrmlData_ErrorStatus
83 Write (const char * thePrefix) const;
86 * Returns True if the node is default, then it would not be written.
88 Standard_EXPORT virtual Standard_Boolean
92 // ---------- PRIVATE FIELDS ----------
95 NCollection_List <const char *> myInfo;
98 // Declaration of CASCADE RTTI
99 DEFINE_STANDARD_RTTI (VrmlData_WorldInfo)
102 // Definition of HANDLE object using Standard_DefineHandle.hxx
103 DEFINE_STANDARD_HANDLE (VrmlData_WorldInfo, VrmlData_Node)