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. More...
|
|
| ~MayaPlane () |
| Destructor.
|
|
double | Z () const |
| Return the height.
|
|
Box2 | GetArea () const |
| Return the rectangular area.
|
|
void | SetArea (const Box2 &) |
| Define the rectangular area. More...
|
|
void | Translate (const double &) |
| Translate the plane. More...
|
|
bool | Intersect (const Ray &, double &) const |
| Intersect a ray with the plane. More...
|
|
void | Render () |
| Render the horizontal plane.
|
|
|
void | InitRenderer () |
| Initialize the renderers.
|
|
|
Box2 | area |
| Area of the grid.
|
|
double | height |
| Elevation.
|
|
double | line |
| Line interval.
|
|
MayaSimpleRenderer * | planeRendererWhiteLine |
| Renderer used to draw the white line of the plane.
|
|
MayaSimpleRenderer * | planeRendererBlackLine |
| Renderer used to draw the black line of the plane.
|
|
MayaSimpleRenderer * | planeRendererQuad |
| 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 |
|
) |
| |
◆ 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.