fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Drawables / Geometry / Util / OSGSimpleGeometry.h
blob345d7f07636042f1056b123835af94a5c24e143c
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
6 * *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
8 * *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11 * License *
12 * *
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
16 * *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
21 * *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
25 * *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28 * Changes *
29 * *
30 * *
31 * *
32 * *
33 * *
34 * *
35 \*---------------------------------------------------------------------------*/
38 #ifndef _OSGGeoSimpleGeometry_H_
39 #define _OSGGeoSimpleGeometry_H_
40 #ifdef __sgi
41 #pragma once
42 #endif
44 #include "OSGBaseTypes.h"
45 #include "OSGNode.h"
46 #include "OSGDrawableDef.h"
47 #include "OSGGeometry.h"
50 OSG_BEGIN_NAMESPACE
52 /*---------------------------------------------------------------------*/
53 /*! \name Construction functions */
54 /*! \{ */
56 OSG_DRAWABLE_DLLMAPPING
57 GeometryTransitPtr makePlaneGeo (Real32 xsize,
58 Real32 ysize,
59 UInt16 hor,
60 UInt16 vert);
62 OSG_DRAWABLE_DLLMAPPING
63 NodeTransitPtr makePlane (Real32 xsize,
64 Real32 ysize,
65 UInt16 hor,
66 UInt16 vert);
68 OSG_DRAWABLE_DLLMAPPING
69 GeometryTransitPtr makeBoxGeo (Real32 xsize,
70 Real32 ysize,
71 Real32 zsize,
72 UInt16 hor,
73 UInt16 vert,
74 UInt16 depth,
75 bool bInv = false);
77 OSG_DRAWABLE_DLLMAPPING
78 NodeTransitPtr makeBox (Real32 xsize,
79 Real32 ysize,
80 Real32 zsize,
81 UInt16 hor,
82 UInt16 vert,
83 UInt16 depth);
85 OSG_DRAWABLE_DLLMAPPING
86 GeometryTransitPtr makeConeGeo (Real32 height,
87 Real32 botradius,
88 UInt16 sides,
89 bool doSide,
90 bool doBottom);
92 OSG_DRAWABLE_DLLMAPPING
93 NodeTransitPtr makeCone (Real32 height,
94 Real32 botradius,
95 UInt16 sides,
96 bool doSide,
97 bool doBottom);
99 OSG_DRAWABLE_DLLMAPPING
100 GeometryTransitPtr makeCylinderGeo (Real32 height,
101 Real32 radius,
102 UInt16 sides,
103 bool doSide,
104 bool doTop,
105 bool doBottom);
107 OSG_DRAWABLE_DLLMAPPING
108 NodeTransitPtr makeCylinder (Real32 height,
109 Real32 radius,
110 UInt16 sides,
111 bool doSide,
112 bool doTop,
113 bool doBottom);
115 OSG_DRAWABLE_DLLMAPPING
116 GeometryTransitPtr makeTorusGeo (Real32 innerRadius,
117 Real32 outerRadius,
118 UInt16 sides,
119 UInt16 rings );
122 OSG_DRAWABLE_DLLMAPPING
123 NodeTransitPtr makeTorus (Real32 innerRadius,
124 Real32 outerRadius,
125 UInt16 sides,
126 UInt16 rings);
128 OSG_DRAWABLE_DLLMAPPING
129 GeometryTransitPtr makeSphereGeo (UInt16 depth,
130 Real32 radius);
132 OSG_DRAWABLE_DLLMAPPING
133 NodeTransitPtr makeSphere (UInt16 depth,
134 Real32 radius);
136 OSG_DRAWABLE_DLLMAPPING
137 GeometryTransitPtr makeLatLongSphereGeo (UInt16 latres,
138 UInt16 longres,
139 Real32 radius);
141 OSG_DRAWABLE_DLLMAPPING
142 NodeTransitPtr makeLatLongSphere (UInt16 latres,
143 UInt16 longres,
144 Real32 radius);
146 OSG_DRAWABLE_DLLMAPPING
147 GeometryTransitPtr makeLatLongEllipsoidGeo(UInt16 latres,
148 UInt16 longres,
149 Real32 rSemiMajorAxis,
150 Real32 rSemiMinorAxis);
152 OSG_DRAWABLE_DLLMAPPING
153 NodeTransitPtr makeLatLongEllipsoid (UInt16 latres,
154 UInt16 longres,
155 Real32 rSemiMajorAxis,
156 Real32 rSemiMinorAxis);
158 OSG_DRAWABLE_DLLMAPPING
159 GeometryTransitPtr makeLatLongEllipsoidGeoSeg(UInt16 latres,
160 UInt16 longres,
161 Real32 rSemiMajorAxis,
162 Real32 rSemiMinorAxis,
163 Real32 rStartLatRad,
164 Real32 rStartLongRad,
165 Real32 rStopLatRad,
166 Real32 rStopLongRad );
168 OSG_DRAWABLE_DLLMAPPING
169 NodeTransitPtr makeLatLongEllipsoidSeg (UInt16 latres,
170 UInt16 longres,
171 Real32 rSemiMajorAxis,
172 Real32 rSemiMinorAxis,
173 Real32 rStartLatRad,
174 Real32 rStartLongRad,
175 Real32 rStopLatRad,
176 Real32 rStopLongRad );
178 OSG_DRAWABLE_DLLMAPPING
179 GeometryTransitPtr makeEllipsoidAxisGeo (UInt16 latres,
180 UInt16 longres,
181 Real32 rSemiMajorAxis,
182 Real32 rSemiMinorAxis);
184 OSG_DRAWABLE_DLLMAPPING
185 NodeTransitPtr makeEllipsoidAxis (UInt16 latres,
186 UInt16 longres,
187 Real32 rSemiMajorAxis,
188 Real32 rSemiMinorAxis);
190 OSG_DRAWABLE_DLLMAPPING
191 GeometryTransitPtr makeConicalFrustumGeo (Real32 height,
192 Real32 topradius,
193 Real32 botradius,
194 UInt16 sides,
195 bool doSide,
196 bool doTop,
197 bool doBottom);
199 OSG_DRAWABLE_DLLMAPPING
200 NodeTransitPtr makeConicalFrustum (Real32 height,
201 Real32 topradius,
202 Real32 botradius,
203 UInt16 sides,
204 bool doSide,
205 bool doTop,
206 bool doBottom);
207 OSG_DRAWABLE_DLLMAPPING
208 NodeTransitPtr makeCoordAxis(Real32 length,
209 Real32 lineWidth = 2.0f,
210 bool showAxisName = true);
212 OSG_DRAWABLE_DLLMAPPING
213 GeometryTransitPtr makeCoordAxisGeo(Real32 length,
214 Real32 lineWidth = 2.0f,
215 bool showAxisName = true);
217 OSG_DRAWABLE_DLLMAPPING
218 GeometryTransitPtr makeTeapotGeo(UInt16 depth,
219 Real32 rScale = 1.f);
221 OSG_DRAWABLE_DLLMAPPING
222 NodeTransitPtr makeTeapot (UInt16 depth,
223 Real32 rScale = 1.f);
225 /*! \} */
227 OSG_END_NAMESPACE
229 #endif /* _OSGGeoSimpleGeometry_H_ */