Detailed Description
- See also:
- Class Interface,
Class
ShapeObject, Class Spline3D, Class
Point3.
- Description:
- This class is available in release 3.0 and later only.
This is the callback object for the method Interface::DoSpaceArrayDialog(SpaceArrayCallback
*sacb=NULL)=0
This is the method which brings up the Spacing tool. This lets the
user distribute objects based on the current selection along a path
defined by a spline or a pair of points.
The callback is mostly for use for plug-ins that need to use the
spacing tool as a way of generating spacing information. If one
wants to customize the default behaviour of the dialog, they derive
a class from this one and implement the virtual methods. The
non-virtuals simply provide access to the spacing information. This
is both for setting the defaults before calling the spacing tool as
well as getting out the information after using the spacing
tool.
#include <spacearraycallback.h>
List of all
members.
Constructor & Destructor Documentation
{ path = NULL; start = end = space = 0.0f; count = 1; oType = NODE_CPY; sType = SPACE_CENTER; follow = false;
context = CTXT_FREE; width = 0.0f; countLimit = INT_MAX; }
Member Function Documentation
virtual bool isModal |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return true; }
virtual bool doPickPath |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return false; }
virtual MCHAR* dialogTitle |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return _M(""); }
virtual MCHAR* startMessage |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return _M(""); }
virtual MCHAR* buttonText |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return _M("OK"); }
virtual bool isSilent |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return false; }
virtual bool doObjectType |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- { return true; }
virtual void proc |
( |
void |
|
) |
[inline, virtual] |
- Default Implementation:
- {}
- Parameters:
-
ShapeObject *p
Points to the shape object to use as a path.
- Parameters:
- Point3
pt1
One of the endpoints.
Point3 pt2
The other endpoint.
CoreExport void setPath |
( |
Spline3D * |
s |
) |
|
- Parameters:
- Spline3D *s
Points to the path to use.
float getStart |
( |
void |
|
) |
[inline] |
float getEnd |
( |
void |
|
) |
[inline] |
float getSpace |
( |
void |
|
) |
[inline] |
int getCount |
( |
void |
|
) |
[inline] |
int getContext |
( |
void |
|
) |
[inline] |
float getWidth |
( |
void |
|
) |
[inline] |
void setStart |
( |
float |
f |
) |
[inline] |
- Parameters:
- float f
The start offset to set.
void setEnd |
( |
float |
f |
) |
[inline] |
- Parameters:
- float f
The end offset to set.
void setSpace |
( |
float |
f |
) |
[inline] |
- Parameters:
- float f
The spacing to set.
void setCount |
( |
int |
n |
) |
[inline] |
- Parameters:
- int n
The count to set.
{ count = n > countLimit ? countLimit : n; }
bool getFollow |
( |
void |
|
) |
[inline] |
void setFollow |
( |
bool |
t |
) |
[inline] |
- Parameters:
- bool t
Use true for checked; false for un-checked.
void setContext |
( |
CTYPE |
c |
) |
[inline] |
- Parameters:
- CTYPE c
One of the following values:
CTXT_FREE - Free Center
CTXT_CNTRCOUNT - Divide Evenly, Objects at Ends
CTXT_CNTRSPACE - Centered, Specify Spacing
CTXT_END - End Offset
CTXT_ENDCOUNT - End Offset, Divide Evenly
CTXT_ENDSPACE - End Offset, Specify Spacing
CTXT_START - Start Offset
CTXT_STARTCOUNT - Start Offset, Divide Evenly
CTXT_STARTSPACE - Start Offset, Specify Spacing
CTXT_FULLSPACE - Specify Offset and Spacing
CTXT_FULLCOUNT - Specify Offsets, Divide Evenly
CTXT_ENDLOCK - Space from End, Unbounded
CTXT_ENDLOCKCOUNT - Space from End, Specify Number
CTXT_ENDLOCKSPACE - Space from End, Specify Spacing
CTXT_STARTLOCK - Space from Start, Unbounded
CTXT_STARTLOCKCOUNT - Space from Start, Specify Number
CTXT_STARTLOCKSPACE - Space from Start, Specify
Spacing
CTXT_FULLLOCKSPACE - Specify Spacing, Matching Offsets
CTXT_FULLLOCKCOUNT - Divide Evenly, No Objects at Ends
OTYPE getObjectCreationType |
( |
void |
|
) |
[inline] |
void setObjectCreationType |
( |
OTYPE |
t |
) |
[inline] |
STYPE getSpacingType |
( |
void |
|
) |
[inline] |
void setSpacingType |
( |
STYPE |
s |
) |
[inline] |
- Parameters:
- STYPE s
One of the following values:
SPACE_CENTER
SPACE_EDGE
CoreExport void setMessage |
( |
char * |
buf |
) |
|
void setWidth |
( |
float |
nWidth |
) |
[inline] |
- Parameters:
- float nWidth
The width to set.
void setCountLimit |
( |
int |
limit |
) |
[inline] |
- Parameters:
- int limit
The limit to set.
int getCountLimit |
( |
void |
|
) |
[inline] |
SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback SpaceArrayCallback
SpaceArrayCallback SpaceArrayCallback