MGUI::TOOL_BASE::SNAPGRID Class Reference

Snap grid definition. More...

#include <mgui/toolbase.h>

List of all members.

Public Member Functions

void Adjust (DPOINT2D &pt) const
const DPOINT2DGetInterval () const
const TRANS2D_AFFINEGetTrans () const
bool IsValid () const
void SetInterval (const DPOINT2D &interval)
void SetTrans (const TRANS2D_AFFINE &trans)
 SNAPGRID (const DPOINT2D &interval, const TRANS2D_AFFINE &trans)
 SNAPGRID (const DPOINT2D &interval)
 SNAPGRID ()


Detailed Description

Snap grid definition.

Definition at line 122 of file toolbase.h.


Constructor & Destructor Documentation

MGUI::TOOL_BASE::SNAPGRID::SNAPGRID  ) 
 

Default constructor.

MGUI::TOOL_BASE::SNAPGRID::SNAPGRID const DPOINT2D interval  )  [explicit]
 

Construct with specified interval.

MGUI::TOOL_BASE::SNAPGRID::SNAPGRID const DPOINT2D interval,
const TRANS2D_AFFINE trans
 

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]
 

Get snap interval.

Definition at line 146 of file toolbase.h.

const TRANS2D_AFFINE& MGUI::TOOL_BASE::SNAPGRID::GetTrans  )  const [inline]
 

Get transformation from tool to snapgrid coordinates.

Definition at line 150 of file toolbase.h.

bool MGUI::TOOL_BASE::SNAPGRID::IsValid  )  const [inline]
 

Determine if snapgrid is valid.

Definition at line 154 of file toolbase.h.

void MGUI::TOOL_BASE::SNAPGRID::SetInterval const DPOINT2D interval  )  [inline]
 

Set snap interval.

Definition at line 158 of file toolbase.h.

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

Definition at line 163 of file toolbase.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:21:01 2004 for TNTsdk by  doxygen 1.3.8-20040913