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 "OSGBaseTypes.h"
00045 #include "OSGNode.h"
00046 #include "OSGDrawableDef.h"
00047 #include "OSGGeometry.h"
00048
00049
00050 OSG_BEGIN_NAMESPACE
00051
00052
00056 OSG_DRAWABLE_DLLMAPPING
00057 GeometryPtr makePlaneGeo (Real32 xsize,
00058 Real32 ysize,
00059 UInt16 hor,
00060 UInt16 vert);
00061
00062 OSG_DRAWABLE_DLLMAPPING
00063 NodePtr makePlane (Real32 xsize,
00064 Real32 ysize,
00065 UInt16 hor,
00066 UInt16 vert);
00067
00068 OSG_DRAWABLE_DLLMAPPING
00069 GeometryPtr makeBoxGeo (Real32 xsize,
00070 Real32 ysize,
00071 Real32 zsize,
00072 UInt16 hor,
00073 UInt16 vert,
00074 UInt16 depth);
00075
00076 OSG_DRAWABLE_DLLMAPPING
00077 NodePtr makeBox (Real32 xsize,
00078 Real32 ysize,
00079 Real32 zsize,
00080 UInt16 hor,
00081 UInt16 vert,
00082 UInt16 depth);
00083
00084 OSG_DRAWABLE_DLLMAPPING
00085 GeometryPtr makeConeGeo (Real32 height,
00086 Real32 botradius,
00087 UInt16 sides,
00088 bool doSide,
00089 bool doBottom);
00090
00091 OSG_DRAWABLE_DLLMAPPING
00092 NodePtr makeCone (Real32 height,
00093 Real32 botradius,
00094 UInt16 sides,
00095 bool doSide,
00096 bool doBottom);
00097
00098 OSG_DRAWABLE_DLLMAPPING
00099 GeometryPtr makeCylinderGeo (Real32 height,
00100 Real32 radius,
00101 UInt16 sides,
00102 bool doSide,
00103 bool doTop,
00104 bool doBottom);
00105
00106 OSG_DRAWABLE_DLLMAPPING
00107 NodePtr makeCylinder (Real32 height,
00108 Real32 radius,
00109 UInt16 sides,
00110 bool doSide,
00111 bool doTop,
00112 bool doBottom);
00113
00114 OSG_DRAWABLE_DLLMAPPING
00115 GeometryPtr makeTorusGeo (Real32 innerRadius,
00116 Real32 outerRadius,
00117 UInt16 sides,
00118 UInt16 rings );
00119
00120
00121 OSG_DRAWABLE_DLLMAPPING
00122 NodePtr makeTorus (Real32 innerRadius,
00123 Real32 outerRadius,
00124 UInt16 sides,
00125 UInt16 rings);
00126
00127 OSG_DRAWABLE_DLLMAPPING
00128 GeometryPtr makeSphereGeo (UInt16 depth,
00129 Real32 radius);
00130
00131 OSG_DRAWABLE_DLLMAPPING
00132 NodePtr makeSphere (UInt16 depth,
00133 Real32 radius);
00134
00135 OSG_DRAWABLE_DLLMAPPING
00136 GeometryPtr makeLatLongSphereGeo (UInt16 latres,
00137 UInt16 longres,
00138 Real32 radius);
00139
00140 OSG_DRAWABLE_DLLMAPPING
00141 NodePtr makeLatLongSphere (UInt16 latres,
00142 UInt16 longres,
00143 Real32 radius);
00144
00145 OSG_DRAWABLE_DLLMAPPING
00146 GeometryPtr makeConicalFrustumGeo (Real32 height,
00147 Real32 topradius,
00148 Real32 botradius,
00149 UInt16 sides,
00150 bool doSide,
00151 bool doTop,
00152 bool doBottom);
00153
00154 OSG_DRAWABLE_DLLMAPPING
00155 NodePtr makeConicalFrustum (Real32 height,
00156 Real32 topradius,
00157 Real32 botradius,
00158 UInt16 sides,
00159 bool doSide,
00160 bool doTop,
00161 bool doBottom);
00162 OSG_DRAWABLE_DLLMAPPING
00163 NodePtr makeCoordAxis(Real32 length,
00164 Real32 lineWidth = 2.0f,
00165 bool showAxisName = true);
00166
00167 OSG_DRAWABLE_DLLMAPPING
00168 GeometryPtr makeCoordAxisGeo(Real32 length,
00169 Real32 lineWidth = 2.0f,
00170 bool showAxisName = true);
00171
00172 OSG_DRAWABLE_DLLMAPPING
00173 GeometryPtr makeTeapotGeo(UInt16 depth);
00174
00175 OSG_DRAWABLE_DLLMAPPING
00176 NodePtr makeTeapot (UInt16 depth);
00177
00180 OSG_END_NAMESPACE
00181
00182 #endif