MGCL V10
V10
MGCL V10
|
Defines Snap attributes. [詳解]
公開型 | |
enum | { BIT_END =0, BIT_KNOT =1, BIT_NEAR =2, BIT_VERTEX =3, BIT_CENTER =4, BIT_GRID =5, BIT_ORTHO =6 } |
公開メンバ関数 | |
MGSnapAttrib () | |
MGSnapAttrib (float apx, float apy, bool bEnd=false, bool bKnot=false, bool bNear=false, bool bVertex=false, bool bCenter=false, bool bGrid=false, bool bOrtho=false) | |
MGSnapAttrib (float apx, float apy, const std::bitset< 32 > &bits) | |
const float * | getSnapAperture () const |
virtual ~MGSnapAttrib(); [詳解] | |
void | setSnapAperture (const float Aperture[2]) |
void | setSnapAperture (double x, double y) |
bool | getEnd () const |
void | setEnd (bool bEnd) |
bool | getKnot () const |
void | setKnot (bool bKnot) |
bool | getNear () const |
void | setNear (bool bNear) |
bool | getVertex () const |
void | setVertex (bool bVertex) |
bool | getCenter () const |
void | setCenter (bool bCenter) |
bool | getGrid () const |
void | setGrid (bool bGrid) |
bool | getOrtho () const |
void | setOrtho (bool bOrtho) |
bool | any () const |
Test if any of the attributes are set on. If on, return true. [詳解] | |
bool | none () const |
Test if none of the attributes is set on. If none is on, return true. [詳解] | |
int | count () const |
Get the number of attributes that are on. [詳解] | |
void | clear_attrib () |
clear all the attrib to false; [詳解] | |
フレンド | |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &ostrm, const MGSnapAttrib &atr) |
Text output to stream. [詳解] | |
MG_DLL_DECLR friend MGOfstream & | operator<< (MGOfstream &buf, const MGSnapAttrib &atr) |
Serialization. [詳解] | |
MG_DLL_DECLR friend MGIfstream & | operator>> (MGIfstream &buf, MGSnapAttrib &atr) |
Defines Snap attributes.
Snap means snap to designated location when inputting positional data from Cursor(generally mouse position). Currently MGCL supports the following enum's snap kind.
MGSnapAttrib::MGSnapAttrib | ( | ) |
MGSnapAttrib::MGSnapAttrib | ( | float | apx, |
float | apy, | ||
bool | bEnd = false , |
||
bool | bKnot = false , |
||
bool | bNear = false , |
||
bool | bVertex = false , |
||
bool | bCenter = false , |
||
bool | bGrid = false , |
||
bool | bOrtho = false |
||
) |
MGSnapAttrib::MGSnapAttrib | ( | float | apx, |
float | apy, | ||
const std::bitset< 32 > & | bits | ||
) |
|
inline |
Test if any of the attributes are set on. If on, return true.
|
inline |
clear all the attrib to false;
|
inline |
Get the number of attributes that are on.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
virtual ~MGSnapAttrib();
Attribute reference
|
inline |
|
inline |
Test if none of the attributes is set on. If none is on, return true.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Text output to stream.
|
friend |
Serialization.
|
friend |