QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RSnapRestriction.h
Go to the documentation of this file.
1
#ifndef RSNAPRESTRICTION_H
2
#define RSNAPRESTRICTION_H
3
4
#include "
RVector.h
"
5
14
class
RSnapRestriction
{
15
public
:
16
RSnapRestriction
() :
lastSnap
(
RVector
::invalid) {}
17
virtual
~RSnapRestriction
() {}
18
23
virtual
RVector
restrictSnap
(
const
RVector
& position,
const
RVector
& relativeZero) = 0;
24
25
virtual
void
showUiOptions
() {}
26
virtual
void
hideUiOptions
() {}
27
28
RVector
getLastSnap
()
const
{
29
return
lastSnap
;
30
}
31
32
void
reset
() {
33
lastSnap
=
RVector::invalid
;
34
}
35
36
protected
:
37
RVector
lastSnap
;
38
};
39
40
Q_DECLARE_METATYPE
(
RSnapRestriction
*)
41
42
#endif
src
core
RSnapRestriction.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1