A simple plane with lines for locating objects in the MayaWidget.
More...
#include <maya.h>
|
| | MayaPlane (const Box2 &=Box2(10.0), const double &=0.0, const double &=1.0) |
| | Create the plane.
|
| |
|
| ~MayaPlane () |
| | Destructor.
|
| |
|
double | Z () const |
| | Return the height.
|
| |
|
Box2 | GetArea () const |
| | Return the rectangular area.
|
| |
| void | SetArea (const Box2 &) |
| | Define the rectangular area.
|
| |
| void | Translate (const double &) |
| | Translate the plane.
|
| |
| bool | Intersect (const Ray &, double &) const |
| | Intersect a ray with the plane.
|
| |
|
void | Render () |
| | Render the horizontal plane. // OBSOLETE.
|
| |
|
void | Render (Camera c, int, int) |
| | Render the horizontal plane.
|
| |
|
|
void | InitRenderer () |
| | Initialize the renderers.
|
| |
|
|
Box2 | area = Box2::Unit |
| | Area of the grid.
|
| |
|
double | height = 0.0 |
| | Elevation.
|
| |
|
double | line = 1.0 |
| | Line interval.
|
| |
|
MayaSimpleRenderer * | planeRendererWhiteLine = nullptr |
| | Renderer used to draw the white line of the plane.
|
| |
|
MayaSimpleRenderer * | planeRendererQuad = nullptr |
| | Renderer used to draw the transparent quad of the plane.
|
| |
A simple plane with lines for locating objects in the MayaWidget.
◆ MayaPlane()
| MayaPlane::MayaPlane |
( |
const Box2 & | box = Box2(10.0), |
|
|
const double & | z = 0.0, |
|
|
const double & | l = 1.0 ) |
|
explicit |
Create the plane.
- Parameters
-
| box | Rectangle. |
| z | Elevation. |
| l | Distance between lines. |
References area, height, and line.
◆ Intersect()
| bool MayaPlane::Intersect |
( |
const Ray & | ray, |
|
|
double & | t ) const |
◆ SetArea()
| void MayaPlane::SetArea |
( |
const Box2 & | r | ) |
|
Define the rectangular area.
- Parameters
-
References area.
◆ Translate()
| void MayaPlane::Translate |
( |
const double & | t | ) |
|
Translate the plane.
- Parameters
-
| t | Translation along z axis. |
References height.