Draw window.
More...
|
Classes |
class | MipResources::DraWinVar |
| DraWin variables. More...
|
class | MipResources::DraWin |
| "Abstract" resource DraWin More...
|
class | MipResources::DraWinGLOptions |
| More...
|
class | MipResources::DraWinGLPerspective |
| More...
|
class | MipResources::DraWinGLLookAt |
| More...
|
class | MipResources::DraWinGLButtons |
| More...
|
class | MipResources::DraWinGLVar |
| More...
|
class | MipResources::DraWinGL |
| window. More...
|
class | MipResources::DraWinBoundBox |
| DraWin bounding box, represents 2D margins of the drawing scene. More...
|
class | MipResources::ColorComponent |
| A color component. More...
|
class | MipResources::Color |
| A color in rgb. More...
|
class | MipResources::Colors |
| Some predefined colors. More...
|
class | MipResources::DraWinObj |
class | MipResources::CmdDraWinObj |
class | MipResources::FigDraWinObj |
class | MipResources::Point2D |
| Drawable point. More...
|
class | MipResources::Points2D |
| List of drawable points. More...
|
class | MipResources::Polygon2D |
| 2D poligon. More...
|
class | MipResources::Segment2D |
| 2D segment. More...
|
class | MipResources::Disk2D |
| 2D anulus. More...
|
class | MipResources::MobileRob2D |
| 2D MobileRob More...
|
class | MipResources::Khepera2D |
| 2D MobileRob More...
|
class | MipResources::Quad3D |
| Quadcopter in 3D. More...
|
class | MipResources::Parallelepiped3D |
class | MipResources::HLine2D |
| 2D Half line More...
|
class | MipResources::CmdBB2D |
| Bounding box command, set the bounding box of a draw scene. More...
|
class | MipResources::CovEllipse2D |
| 2D Cavariance ellipse defined by a 2x2 covariance matrix. More...
|
class | MipResources::DraWinQtSceneOptions |
class | MipResources::DraWinQt2D |
class | MipResources::DraWinGLWindow |
| the DraWinGL widget. More...
|
Typedefs |
typedef vector< DraWinObj * > | MipResources::DraWinList |
| Vector of drawable objects.
|
typedef vector< DraWinList > | MipResources::DraWinLists |
| Vector of lists.
|
Enumerations |
enum | MipResources::DraWinObjPlate {
MipResources::DRA_WIN_OBJ_NULL,
MipResources::DRA_WIN_OBJ_POINT_2D,
MipResources::DRA_WIN_OBJ_POINTS_2D,
MipResources::DRA_WIN_OBJ_POLYGON_2D,
MipResources::DRA_WIN_OBJ_SEG_2D,
MipResources::DRA_WIN_OBJ_DISK_2D,
MipResources::DRA_WIN_OBJ_MOBROB_2D,
MipResources::DRA_WIN_OBJ_KHEPERA_2D,
MipResources::DRA_WIN_OBJ_QUAD_3D,
MipResources::DRA_WIN_OBJ_PAR_3D,
MipResources::DRA_WIN_OBJ_HLINE_2D,
MipResources::DRA_WIN_OBJ_CMD_BB_2D,
MipResources::DRA_WIN_OBJ_COV_ELLIPSE_2D,
MipResources::DRA_WIN_OBJ_NUM
} |
| DraWinObj plates. More...
|
Variables |
static const char * | MipResources::draWinObjNames [DRA_WIN_OBJ_NUM] |
| DraWinObj names.
|
Detailed Description
Draw window.
The resource DraWin provide a drawing window of generic type (see its inheritance diagram for specific implementations).
A typical DraWin usage is composed by 2 phases:
- asking for a drawing list by mean the method addList
- a cycle in which reapeatedly:
- allocate all DraWinObj that you want to draw
- pass their pointers to DraWin by mean the pushObj method
- effectively draw passed object by mean the swapList method
Note that, when swapList method is called, all previously pushed DraWinObj will be deleted, oterwise, to mantain them, the overlapObj method could be used. The overlapObj method does not need the swapList method to be called after.
Typical pushable DraWinObj are of two types:
See the class specific documentation for a deeper explaination. The following example executable is provided. See the section Examples executables to know how to build it within the project.
Good usage in a Task:
- ask for one or more lists in the Task constructor
- collect all the cycle action: DraWinObjs creation, pushings, and swap in a unique private method called at the end of the Task run.
Typedef Documentation
Vector of drawable objects.
Enumeration Type Documentation
DraWinObj plates.
Each type of DraWinObj has one plate.
- Enumerator:
-
DRA_WIN_OBJ_NULL |
|
DRA_WIN_OBJ_POINT_2D |
|
DRA_WIN_OBJ_POINTS_2D |
|
DRA_WIN_OBJ_POLYGON_2D |
|
DRA_WIN_OBJ_SEG_2D |
|
DRA_WIN_OBJ_DISK_2D |
|
DRA_WIN_OBJ_MOBROB_2D |
|
DRA_WIN_OBJ_KHEPERA_2D |
|
DRA_WIN_OBJ_QUAD_3D |
|
DRA_WIN_OBJ_PAR_3D |
|
DRA_WIN_OBJ_HLINE_2D |
|
DRA_WIN_OBJ_CMD_BB_2D |
|
DRA_WIN_OBJ_COV_ELLIPSE_2D |
|
DRA_WIN_OBJ_NUM |
|
Variable Documentation
Initial value:
{
"DraWinObjNull",
"DraWinObjPoint2D",
"DraWinObjPoints2D",
"DraWinObjPolygon2D",
"DraWinObjSeg2D",
"DraWinObjDisk2D",
"DraWinObjMobRob2D",
"DraWinObjKhepera2D",
"DraWinObjQuad3D",
"DraWinObjParallelepiped3D",
"DraWinObjHalfLine2D",
"DraWinObjCovEllipse2D",
"DraWinObjCmdBB2D"
}
DraWinObj names.
Each type of DraWinObj has one name. The names are in the same order of the plates.