#include <ISetPencilPrefsCmdData.h>
|
| enum | { kDefaultIID = IID_ISETPENCILPREFSCMDDATA } |
| |
This is a command data interface of using SetPencilPrefsCmd and SetSmoothPrefsCmd.
- See Also
- kSetPencilPrefsCmdBoss and kSetSmoothPrefsCmdBoss
| virtual const bool16 ISetPencilPrefsCmdData::GetEditSelected | ( | | ) | const |
| pure virtual |
Get the flag if we are going to edit the selected path or not.
- Returns
- bool16 the flag indicates we are going to edit the selected path or not.
| virtual const PMReal& ISetPencilPrefsCmdData::GetEditTolerance | ( | | ) | const |
| pure virtual |
Get the tolerance value.
- Returns
- const PMReal& the tolerance value.
| virtual const PMReal& ISetPencilPrefsCmdData::GetFidelity | ( | | ) | const |
| pure virtual |
Get the fidelity value.
- Returns
- const PMReal& the fidelity value.
| virtual const bool16 ISetPencilPrefsCmdData::GetSelected | ( | | ) | const |
| pure virtual |
Get the selection status flag related to the edited path.
- Returns
- bool16 the selection status after we edit the path.
| virtual const PMReal& ISetPencilPrefsCmdData::GetSmoothness | ( | | ) | const |
| pure virtual |
Get the smoothness value.
- Returns
- const PMReal& the smoothness value.
| virtual void ISetPencilPrefsCmdData::Set | ( | const PMReal & | fidelity, | | | const PMReal & | smoothness, | | | const PMReal & | editTolerance, | | | const bool16 | editSelected, | | | const bool16 | selected | | ) | | |
| pure virtual |
Set all those variables related to pencil preferences in the command data that will finally pass to CurveFit.
- Parameters
| fidelity | the value that indicates the point tolerance when fitting to curve) |
| smoothness | the value indicates how smooth the curve should be |
| editTolerance | the value indicates how close to the curve shall we start to do edit. |
| editSelected | flag indicates if only edit the selected path or not. |
| selected | flag indicates if the newly created spline should be selected or not. |