3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::Shapes::Cone Class Reference

Defines cone shape for remote rendering. More...

Inheritance diagram for Tes::Shapes::Cone:
Tes::Shapes::Shape

List of all members.

Public Member Functions

 Cone (uint id, Vector3 origin, Vector3 dir, float angle, float length)
 Create a new cone.
 Cone (uint id, Vector3 origin, Vector3 basePoint, float radius)
 Create a new cone.
 Cone (uint id=0u, ushort category=0)
 Create a new cone.
 Cone (uint id, ushort category, Vector3 origin, Vector3 dir, float angle, float length)
 Create a new cone.
 Cone (uint id, ushort category, Vector3 origin, Vector3 basePoint, float radius)
 Create a new cone.
override object Clone ()
 Clone this shape.

Public Attributes

const float DefaultAngle = 45.0f / 180.0f * (float)Math.PI
 Default angle when not otherwise specified.
const float DefaultLength = 1.0f
 Default length when not otherwise specified.

Static Public Attributes

static Vector3 DefaultDirection = Vector3.AxisZ
 The default major axis when rendering with an identity quaternion rotation.

Properties

float Angle [get, set]
 Access the cone angle (radians).
float Length [get, set]
 Access the cone length.
Vector3 Point [get, set]
 Access the cone apex.
Vector3 Direction [get, set]
 Access the cone major axis.

Detailed Description

Defines cone shape for remote rendering.

For cones, the ScaleX component contains the cone angle.


Constructor & Destructor Documentation

Tes::Shapes::Cone::Cone ( uint  id,
Vector3  origin,
Vector3  dir,
float  angle,
float  length 
) [inline]

Create a new cone.

Parameters:
idThe shape ID. Zero for transient shapes.
originThe apex of the cone.
dirThe major axis.
angleThe cone angle (radians).
lengthThe length of the cone.
Tes::Shapes::Cone::Cone ( uint  id,
Vector3  origin,
Vector3  basePoint,
float  radius 
) [inline]

Create a new cone.

Parameters:
idThe shape ID. Zero for transient shapes.
originThe apex of the cone.
basePointThe position of the centre of the cone base.
radiusThe cone radius at the base.
Tes::Shapes::Cone::Cone ( uint  id = 0u,
ushort  category = 0 
) [inline]

Create a new cone.

Parameters:
idThe shape ID. Zero for transient shapes.
categoryCategory to which the shape belongs.
Tes::Shapes::Cone::Cone ( uint  id,
ushort  category,
Vector3  origin,
Vector3  dir,
float  angle,
float  length 
) [inline]

Create a new cone.

Parameters:
idThe shape ID. Zero for transient shapes.
categoryCategory to which the shape belongs.
originThe apex of the cone.
dirThe major axis.
angleThe cone angle (radians).
lengthThe length of the cone.
Tes::Shapes::Cone::Cone ( uint  id,
ushort  category,
Vector3  origin,
Vector3  basePoint,
float  radius 
) [inline]

Create a new cone.

Parameters:
idThe shape ID. Zero for transient shapes.
categoryCategory to which the shape belongs.
originThe apex of the cone.
basePointThe position of the centre of the cone base.
radiusThe cone radius at the base.

Member Function Documentation

override object Tes::Shapes::Cone::Clone ( ) [inline, virtual]

Clone this shape.

Returns:
A deep copy of this object.

Reimplemented from Tes::Shapes::Shape.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events