10 #include <3esrotation.h> 33 Plane(uint32_t
id = 0u,
const V3Arg &position =
V3Arg(0, 0, 0),
const V3Arg &normal = DefaultNormal,
float scale = 1.0f,
float normalLength = 1.0f);
41 Plane(uint32_t
id, uint16_t category,
const V3Arg &position =
V3Arg(0, 0, 0),
const V3Arg &normal = DefaultNormal,
float scale = 1.0f,
float normalLength = 1.0f);
60 Plane &setScale(
float scale);
68 Plane &setNormalLength(
float length);
72 float normalLength()
const;
79 setPosition(position);
81 Shape::setScale(
Vector3f(scale, normalLength, scale));
86 :
Shape(SIdPlane, id, category)
88 setPosition(position);
90 Shape::setScale(
Vector3f(scale, normalLength, scale));
120 return Shape::scale().x;
135 return Shape::scale().y;
139 #endif // _3ESPLANE_H_ A base class for encapsulating a shape which is to be represented remotely.
Definition: 3esshape.h:39
float normalLength() const
Get the plane normal display length.
Definition: 3esplane.h:133
float scale() const
Get the plane scaling values.
Definition: 3esplane.h:118
static const Vector3f DefaultNormal
Defines the default plane normal orientation.
Definition: 3esplane.h:30
Definition: 3esbounds.h:13
Defines a rectangular planar section to display.
Definition: 3esplane.h:22
Vector3< float > Vector3f
Defines a single precision vector.
Definition: 3esvector3.h:14
Vector3f normal() const
Get the plane normal.
Definition: 3esplane.h:102
Represents a vector in R3.
Definition: 3esvector3.h:14
A helper structure used to convert from float or double pointers to Vector3f arguments.
Definition: 3esv3arg.h:14
T x
Direct data member access.
Definition: 3esvector3.h:30
Plane(uint32_t id=0u, const V3Arg &position=V3Arg(0, 0, 0), const V3Arg &normal=DefaultNormal, float scale=1.0f, float normalLength=1.0f)
Definition: 3esplane.h:76
Plane & setScale(float scale)
Set the plane "scale", which controls the render size.
Definition: 3esplane.h:109
Plane & setNormal(const V3Arg &normal)
Set the plane normal.
Definition: 3esplane.h:94
Plane & setNormalLength(float length)
Set the plane normal's display length.
Definition: 3esplane.h:124