Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:31

0001 // Created on: 1997-02-12
0002 // Created by: Alexander BRIVIN
0003 // Copyright (c) 1997-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Vrml_WWWInline_HeaderFile
0018 #define _Vrml_WWWInline_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <TCollection_AsciiString.hxx>
0024 #include <gp_Vec.hxx>
0025 #include <Standard_OStream.hxx>
0026 
0027 
0028 //! defines a WWWInline node of VRML specifying group properties.
0029 //! The  WWWInline  group  node  reads  its  children  from  anywhere  in  the
0030 //! World  Wide  Web.
0031 //! Exactly  when  its  children  are  read  is  not  defined;
0032 //! reading  the  children  may  be  delayed  until  the  WWWInline  is  actually
0033 //! displayed.
0034 //! WWWInline  with  an  empty  ("")  name  does  nothing.
0035 //! WWWInline  behaves  like  a  Separator,  pushing  the  traversal  state
0036 //! before  traversing  its  children  and  popping  it  afterwards.
0037 //! By  defaults:
0038 //! myName  ("")
0039 //! myBboxSize (0,0,0)
0040 //! myBboxCenter  (0,0,0)
0041 class Vrml_WWWInline 
0042 {
0043 public:
0044 
0045   DEFINE_STANDARD_ALLOC
0046 
0047   
0048   Standard_EXPORT Vrml_WWWInline();
0049   
0050   Standard_EXPORT Vrml_WWWInline(const TCollection_AsciiString& aName, const gp_Vec& aBboxSize, const gp_Vec& aBboxCenter);
0051   
0052   Standard_EXPORT void SetName (const TCollection_AsciiString& aName);
0053   
0054   Standard_EXPORT TCollection_AsciiString Name() const;
0055   
0056   Standard_EXPORT void SetBboxSize (const gp_Vec& aBboxSize);
0057   
0058   Standard_EXPORT gp_Vec BboxSize() const;
0059   
0060   Standard_EXPORT void SetBboxCenter (const gp_Vec& aBboxCenter);
0061   
0062   Standard_EXPORT gp_Vec BboxCenter() const;
0063   
0064   Standard_EXPORT Standard_OStream& Print (Standard_OStream& anOStream) const;
0065 
0066 
0067 
0068 
0069 protected:
0070 
0071 
0072 
0073 
0074 
0075 private:
0076 
0077 
0078 
0079   TCollection_AsciiString myName;
0080   gp_Vec myBboxSize;
0081   gp_Vec myBboxCenter;
0082 
0083 
0084 };
0085 
0086 
0087 
0088 
0089 
0090 
0091 
0092 #endif // _Vrml_WWWInline_HeaderFile