00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef _OSGGeoSimpleGeometry_H_
00039 #define _OSGGeoSimpleGeometry_H_
00040 #ifdef __sgi
00041 #pragma once
00042 #endif
00043
00044 #include <OSGConfig.h>
00045 #include <OSGBaseTypes.h>
00046 #include <OSGNode.h>
00047 #include <OSGSystemDef.h>
00048 #include <OSGGeoPropPtrs.h>
00049 #include <OSGGeometry.h>
00050 #include <OSGMaterial.h>
00051
00052
00053 OSG_BEGIN_NAMESPACE
00054
00055
00059 OSG_SYSTEMLIB_DLLMAPPING
00060 GeometryPtr makePlaneGeo (Real32 xsize,
00061 Real32 ysize,
00062 UInt16 hor,
00063 UInt16 vert);
00064
00065 OSG_SYSTEMLIB_DLLMAPPING
00066 NodePtr makePlane (Real32 xsize,
00067 Real32 ysize,
00068 UInt16 hor,
00069 UInt16 vert);
00070
00071 OSG_SYSTEMLIB_DLLMAPPING
00072 GeometryPtr makeBoxGeo (Real32 xsize,
00073 Real32 ysize,
00074 Real32 zsize,
00075 UInt16 hor,
00076 UInt16 vert,
00077 UInt16 depth);
00078
00079 OSG_SYSTEMLIB_DLLMAPPING
00080 NodePtr makeBox (Real32 xsize,
00081 Real32 ysize,
00082 Real32 zsize,
00083 UInt16 hor,
00084 UInt16 vert,
00085 UInt16 depth);
00086
00087 OSG_SYSTEMLIB_DLLMAPPING
00088 GeometryPtr makeConeGeo (Real32 height,
00089 Real32 botradius,
00090 UInt16 sides,
00091 bool doSide,
00092 bool doBottom);
00093
00094 OSG_SYSTEMLIB_DLLMAPPING
00095 NodePtr makeCone (Real32 height,
00096 Real32 botradius,
00097 UInt16 sides,
00098 bool doSide,
00099 bool doBottom);
00100
00101 OSG_SYSTEMLIB_DLLMAPPING
00102 GeometryPtr makeCylinderGeo (Real32 height,
00103 Real32 radius,
00104 UInt16 sides,
00105 bool doSide,
00106 bool doTop,
00107 bool doBottom);
00108
00109 OSG_SYSTEMLIB_DLLMAPPING
00110 NodePtr makeCylinder (Real32 height,
00111 Real32 radius,
00112 UInt16 sides,
00113 bool doSide,
00114 bool doTop,
00115 bool doBottom);
00116
00117 OSG_SYSTEMLIB_DLLMAPPING
00118 GeometryPtr makeTorusGeo (Real32 innerRadius,
00119 Real32 outerRadius,
00120 UInt16 sides,
00121 UInt16 rings );
00122
00123
00124 OSG_SYSTEMLIB_DLLMAPPING
00125 NodePtr makeTorus (Real32 innerRadius,
00126 Real32 outerRadius,
00127 UInt16 sides,
00128 UInt16 rings);
00129
00130 OSG_SYSTEMLIB_DLLMAPPING
00131 GeometryPtr makeSphereGeo (UInt16 depth,
00132 Real32 radius);
00133
00134 OSG_SYSTEMLIB_DLLMAPPING
00135 NodePtr makeSphere (UInt16 depth,
00136 Real32 radius);
00137
00138 OSG_SYSTEMLIB_DLLMAPPING
00139 GeometryPtr makeLatLongSphereGeo (UInt16 latres,
00140 UInt16 longres,
00141 Real32 radius);
00142
00143 OSG_SYSTEMLIB_DLLMAPPING
00144 NodePtr makeLatLongSphere (UInt16 latres,
00145 UInt16 longres,
00146 Real32 radius);
00147
00148 OSG_SYSTEMLIB_DLLMAPPING
00149 GeometryPtr makeConicalFrustumGeo (Real32 height,
00150 Real32 topradius,
00151 Real32 botradius,
00152 UInt16 sides,
00153 bool doSide,
00154 bool doTop,
00155 bool doBottom);
00156
00157 OSG_SYSTEMLIB_DLLMAPPING
00158 NodePtr makeConicalFrustum (Real32 height,
00159 Real32 topradius,
00160 Real32 botradius,
00161 UInt16 sides,
00162 bool doSide,
00163 bool doTop,
00164 bool doBottom);
00165
00167
00171 OSG_SYSTEMLIB_DLLMAPPING MaterialPtr getDefaultMaterial(void);
00172
00173 OSG_SYSTEMLIB_DLLMAPPING MaterialPtr getDefaultUnlitMaterial(void);
00174
00177 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00178
00183 OSG_SYSTEMLIB_DLLMAPPING GeoPositions3fPtr makeGeoPositions3fPtr(UInt32 uiSize);
00184 OSG_SYSTEMLIB_DLLMAPPING GeoIndicesUI32Ptr makeGeoIndicesUI32Ptr(UInt32 uiSize);
00185 OSG_SYSTEMLIB_DLLMAPPING GeoPLengthsPtr makeGeoPLengthsPtr (UInt32 uiSize);
00186 OSG_SYSTEMLIB_DLLMAPPING GeoPTypesPtr makeGeoPTypesPtr (UInt32 uiSize);
00187
00188 #endif // exclude from doc
00189
00190
00191 OSG_END_NAMESPACE
00192
00193 #endif