Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-31 08:31:34

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 //! defines a WWWInline node of VRML specifying group properties.
0028 //! The  WWWInline  group  node  reads  its  children  from  anywhere  in  the
0029 //! World  Wide  Web.
0030 //! Exactly  when  its  children  are  read  is  not  defined;
0031 //! reading  the  children  may  be  delayed  until  the  WWWInline  is  actually
0032 //! displayed.
0033 //! WWWInline  with  an  empty  ("")  name  does  nothing.
0034 //! WWWInline  behaves  like  a  Separator,  pushing  the  traversal  state
0035 //! before  traversing  its  children  and  popping  it  afterwards.
0036 //! By  defaults:
0037 //! myName  ("")
0038 //! myBboxSize (0,0,0)
0039 //! myBboxCenter  (0,0,0)
0040 class Vrml_WWWInline
0041 {
0042 public:
0043   DEFINE_STANDARD_ALLOC
0044 
0045   Standard_EXPORT Vrml_WWWInline();
0046 
0047   Standard_EXPORT Vrml_WWWInline(const TCollection_AsciiString& aName,
0048                                  const gp_Vec&                  aBboxSize,
0049                                  const gp_Vec&                  aBboxCenter);
0050 
0051   Standard_EXPORT void SetName(const TCollection_AsciiString& aName);
0052 
0053   Standard_EXPORT TCollection_AsciiString Name() const;
0054 
0055   Standard_EXPORT void SetBboxSize(const gp_Vec& aBboxSize);
0056 
0057   Standard_EXPORT gp_Vec BboxSize() const;
0058 
0059   Standard_EXPORT void SetBboxCenter(const gp_Vec& aBboxCenter);
0060 
0061   Standard_EXPORT gp_Vec BboxCenter() const;
0062 
0063   Standard_EXPORT Standard_OStream& Print(Standard_OStream& anOStream) const;
0064 
0065 protected:
0066 private:
0067   TCollection_AsciiString myName;
0068   gp_Vec                  myBboxSize;
0069   gp_Vec                  myBboxCenter;
0070 };
0071 
0072 #endif // _Vrml_WWWInline_HeaderFile