Inheritance diagram for osgSim::SphereSegment:
Public Types | |
enum | DrawMask { SURFACE = 0x00000001, SPOKES = 0x00000002, EDGELINE = 0x00000008, SIDES = 0x00000010, ALL = 0xffffffff } |
Public Member Functions | |
SphereSegment () | |
SphereSegment (const osg::Vec3 ¢re, float radius, float azMin, float azMax, float elevMin, float elevMax, int density) | |
SphereSegment (const osg::Vec3 ¢re, float radius, const osg::Vec3 &vec, float azRange, float elevRange, int density) | |
SphereSegment (const SphereSegment &rhs, const osg::CopyOp &co) | |
void | setCentre (const osg::Vec3 &c) |
const osg::Vec3 & | getCentre () const |
void | setRadius (float r) |
float | getRadius () const |
void | setArea (const osg::Vec3 &v, float azRange, float elevRange) |
void | getArea (osg::Vec3 &v, float &azRange, float &elevRange) const |
void | setArea (float azMin, float azMax, float elevMin, float elevMax) |
void | getArea (float &azMin, float &azMax, float &elevMin, float &elevMax) const |
void | setDensity (int d) |
int | getDensity () const |
void | setDrawMask (DrawMask dm) |
DrawMask | getDrawMask () const |
void | setSurfaceColor (const osg::Vec4 &c) |
osg::Vec4 | getSurfaceColor () const |
void | setSpokeColor (const osg::Vec4 &c) |
osg::Vec4 | getSpokeColor () const |
void | setEdgeLineColor (const osg::Vec4 &c) |
osg::Vec4 | getEdgeLineColor () const |
void | setSideColor (const osg::Vec4 &c) |
osg::Vec4 | getSideColor () const |
void | setAllColors (const osg::Vec4 &c) |
META_Node (osgSim, SphereSegment) | |
Friends | |
class | Surface |
class | EdgeLine |
class | Side |
class | Spoke |
Caveats:
|
|
Default constructor. |
|
Construct by angle ranges. Note that the azimuth 'zero' is the Y axis; specifying an azimuth range from azMin -osgPI/2.0f to azMax osg::PI/2.0f will cover the 'top half' of the circle in the XY plane. The elev angles are 'out' of the 'zero' XY plane with +ve angles above the plane, and -ve angles below.
|
|
Construct by vector.
|
|
Copy constructor |
|
Get the area of the sphere segment
|
|
Get the area of the sphere segment
|
|
Get the centre point of the SphereSegment |
|
Get the density of the sphere segment |
|
Get the DrawMask |
|
Get the color of the edge line. |
|
Get the radius of the SphereSegment |
|
Get the color of the planes. |
|
Get the color of the spokes. |
|
Get the color of the surface. |
|
|
|
Set color of all components. |
|
Set the area of the sphere segment
|
|
Set the area of the sphere segment
|
|
Set the centre point of the SphereSegment |
|
Set the density of the sphere segment |
|
Specify the DrawMask.
|
|
Set the color of the edge line. |
|
Set the radius of the SphereSegment |
|
Set the color of the planes. |
|
Set the color of the spokes. |
|
Set the color of the surface. |
|
|
|
|
|
|
|
|