MGUI::TOOL_BASE::SNAPGRID Class Reference
Snap grid definition.
More...
#include <mgui/toolbase.h>
List of all members.
Detailed Description
Snap grid definition.
Constructor & Destructor Documentation
| MGUI::TOOL_BASE::SNAPGRID::SNAPGRID |
( |
|
) |
|
| MGUI::TOOL_BASE::SNAPGRID::SNAPGRID |
( |
const DPOINT2D & |
interval |
) |
[explicit] |
Construct with specified interval.
Construct with specified interval and transformation.
- Parameters:
-
| trans | Transformation from tool to snap grid coordinates |
Member Function Documentation
| void MGUI::TOOL_BASE::SNAPGRID::Adjust |
( |
DPOINT2D & |
pt |
) |
const |
Adjust specified point to snap grid.
- Parameters:
-
| pt | Point in "tool" coordinates |
| const DPOINT2D& MGUI::TOOL_BASE::SNAPGRID::GetInterval |
( |
|
) |
const [inline] |
| const TRANS2D_AFFINE& MGUI::TOOL_BASE::SNAPGRID::GetTrans |
( |
|
) |
const [inline] |
Get transformation from tool to snapgrid coordinates.
| bool MGUI::TOOL_BASE::SNAPGRID::IsValid |
( |
|
) |
const [inline] |
Determine if snapgrid is valid.
| void MGUI::TOOL_BASE::SNAPGRID::SetInterval |
( |
const DPOINT2D & |
interval |
) |
[inline] |
| void MGUI::TOOL_BASE::SNAPGRID::SetTrans |
( |
const TRANS2D_AFFINE & |
trans |
) |
[inline] |
Set transformation from tool to snapgrid coordinates.
- Parameters:
-
| trans | Transformation from tool to snap grid coordinates |
The documentation for this class was generated from the following file: