1 /* NAME: 2 E3GeometryBox.h 3 4 DESCRIPTION: 5 Header file for E3GeometryBox.c. 6 7 COPYRIGHT: 8 Copyright (c) 1999-2004, Quesa Developers. All rights reserved. 9 10 For the current release of Quesa, please see: 11 12 <http://www.quesa.org/> 13 14 Redistribution and use in source and binary forms, with or without 15 modification, are permitted provided that the following conditions 16 are met: 17 18 o Redistributions of source code must retain the above copyright 19 notice, this list of conditions and the following disclaimer. 20 21 o Redistributions in binary form must reproduce the above 22 copyright notice, this list of conditions and the following 23 disclaimer in the documentation and/or other materials provided 24 with the distribution. 25 26 o Neither the name of Quesa nor the names of its contributors 27 may be used to endorse or promote products derived from this 28 software without specific prior written permission. 29 30 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 31 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 32 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 33 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 34 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 36 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 37 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 38 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 39 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 40 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 ___________________________________________________________________________ 42 */ 43 #ifndef E3GEOMETRY_BOX_HDR 44 #define E3GEOMETRY_BOX_HDR 45 //============================================================================= 46 // Include files 47 //----------------------------------------------------------------------------- 48 // Include files go here 49 50 51 52 53 54 //============================================================================= 55 // C++ preamble 56 //----------------------------------------------------------------------------- 57 #ifdef __cplusplus 58 extern "C" { 59 #endif 60 61 62 63 64 65 //============================================================================= 66 // Function prototypes 67 //----------------------------------------------------------------------------- 68 TQ3Status E3GeometryBox_RegisterClass(void); 69 TQ3Status E3GeometryBox_UnregisterClass(void); 70 71 TQ3GeometryObject E3Box_New(const TQ3BoxData *boxData); 72 TQ3Status E3Box_Submit(const TQ3BoxData *boxData, TQ3ViewObject theView); 73 TQ3Status E3Box_GetData(TQ3GeometryObject theBox, TQ3BoxData *boxData); 74 TQ3Status E3Box_SetData(TQ3GeometryObject theBox, const TQ3BoxData *boxData); 75 TQ3Status E3Box_EmptyData(TQ3BoxData *boxData); 76 TQ3Status E3Box_SetOrigin(TQ3GeometryObject theBox, const TQ3Point3D *origin); 77 TQ3Status E3Box_SetOrientation(TQ3GeometryObject theBox, const TQ3Vector3D *orientation); 78 TQ3Status E3Box_SetMajorAxis(TQ3GeometryObject theBox, const TQ3Vector3D *majorAxis); 79 TQ3Status E3Box_SetMinorAxis(TQ3GeometryObject theBox, const TQ3Vector3D *minorAxis); 80 TQ3Status E3Box_GetOrigin(TQ3GeometryObject theBox, TQ3Point3D *origin); 81 TQ3Status E3Box_GetOrientation(TQ3GeometryObject theBox, TQ3Vector3D *orientation); 82 TQ3Status E3Box_GetMajorAxis(TQ3GeometryObject theBox, TQ3Vector3D *majorAxis); 83 TQ3Status E3Box_GetMinorAxis(TQ3GeometryObject theBox, TQ3Vector3D *minorAxis); 84 TQ3Status E3Box_GetFaceAttributeSet(TQ3GeometryObject theBox, TQ3Uns32 faceIndex, TQ3AttributeSet *faceAttributeSet); 85 TQ3Status E3Box_SetFaceAttributeSet(TQ3GeometryObject theBox, TQ3Uns32 faceIndex, TQ3AttributeSet faceAttributeSet); 86 87 88 89 90 91 //============================================================================= 92 // C++ postamble 93 //----------------------------------------------------------------------------- 94 #ifdef __cplusplus 95 } 96 #endif 97 98 #endif 99 100