|
| BrushOperation (void) |
| Constructor, do not use it directly. More...
|
|
virtual QString | StringID (const ClassDesc *pClass=0) const |
| Returns the string id of the current brush operation. More...
|
|
virtual QString | DisplayName (void) const |
| Returns the display name of the current brush operation. More...
|
|
virtual void | OnNodeEvent (const Attribute &cAttribute, NodeEventType eType) |
| Overriding the node event. More...
|
|
virtual bool | IsScreenSpace (void) const |
| Returns if the brush is in screen space. More...
|
|
virtual float | BrushSize (void) const |
| Returns the size of the active brush. More...
|
|
virtual float | BrushStrength (void) const |
| Returns the strength of the active brush. More...
|
|
virtual void | SetBrushSize (float fSize) |
| Sets the size of the active brush. More...
|
|
virtual void | SetBrushStrength (float fStrength) |
| Sets the strength of the active brush. More...
|
|
virtual float | EffectiveBrushSize (void) const |
| Returns the size of the active brush including the scaling parameter. More...
|
|
virtual float | EffectiveBrushStrength (void) const |
| Returns the strength of the active brush including the scaling parameter. More...
|
|
virtual float | BrushSizeBias (void) const |
| Returns the size bias percentage. More...
|
|
virtual float | BrushStrengthBias (void) const |
| Returns the strength bias percentage. More...
|
|
virtual float | MaxBrushSize (void) const |
| Returns the maximal brush size. More...
|
|
virtual float | MaxBrushStrength (void) const |
| Returns the maximal brush strength. More...
|
|
virtual bool | UsesStrokeSmoothing (void) const |
| Returns true if the brush wants to use drawing curve. More...
|
|
virtual float | StrokeSmoothingDistance (void) const |
| Returns the distance parameter for smoothing if the brush uses drawing curve. More...
|
|
virtual void | SetStrokeSmoothing (bool bEnable, float fDistance) |
| Convenience function for setting Stroke smoothing parameters. More...
|
|
virtual bool | HasCustomCursor (void) |
| Returns true if the brush wants to draw the cursor on it's own. More...
|
|
virtual bool | UsesSteadyStroke (void) const |
| Returns true if the brush wants to use drawing curve. More...
|
|
virtual float | SteadyStrokeDistance (void) const |
| Returns the distance parameter for smoothing if the brush uses drawing curve. More...
|
|
virtual void | SetSteadyStroke (bool bEnable, float fDistance) |
| Convenience function for setting Stroke smoothing parameters. More...
|
|
virtual enum StampSizingMode | StampSizingMode (void) const |
| Returns the current stamp sizing mode. More...
|
|
virtual void | SetStampSizingMode (enum StampSizingMode eMode) |
| Sets the current stamp sizing mode. More...
|
|
virtual const NURBSCurve * | Falloff (void) const |
| Returns the falloff curve. More...
|
|
virtual void | SetFalloff (NURBSCurve *pCurve) |
| Sets the falloff curve. More...
|
|
virtual const Store< float > & | FalloffData (void) const |
| Returns the current falloff table. More...
|
|
float | FalloffValue (float fValue) const |
| Returns the falloff value in the specified curve position. More...
|
|
virtual bool | UsesFalloffBasedOnFacingAngle (void) const |
| Returns true if Falloff based on Facing Angle is on. More...
|
|
virtual void | SetFalloffBasedOnFacingAngle (bool bEnable) |
| Set Falloff based on Facing Angle. More...
|
|
void | SetFalloffType (FalloffType eType) |
| Set falloff type. More...
|
|
FalloffType | GetFalloffType () const |
| Returns the falloff type. More...
|
|
virtual bool | UsesStampRandomize (void) const |
| Returns true if Stamp Randomize is on. More...
|
|
virtual void | SetStampRandomize (bool bEnable) |
| Set Falloff based on Facing Angle. More...
|
|
virtual bool | IsMaskEnabled (MaskType type=eMaskAny) const |
| Returns true if the mask is turned on for the brush. More...
|
|
virtual const Image * | MaskImage (MaskType type=eMaskAny) const |
| Returns the current mask image. More...
|
|
virtual Matrix | MaskMatrix (MaskType type=eMaskAny) const |
| Returns the current matrix of the mask. More...
|
|
virtual bool | IsMaskInverted (MaskType type=eMaskAny) const |
| Returns whether the value should be inverted or not (inversion means 1-x) More...
|
|
virtual float | MaskFactor (MaskType type=eMaskAny) const |
| Returns the factor value, which should be multiplied to the mask value. More...
|
|
virtual bool | IsMaskTiled (MaskType type=eMaskAny) const |
| Returns true if the mask shall tile, and false if all the values outside the mask should be treated as zero. More...
|
|
virtual QString | MaskName (MaskType type=eMaskAny) const |
| Returns a string identifier which is unique for this mask. More...
|
|
virtual bool | MaskBuildUp (MaskType type=eMaskAny) const |
| Returns true if the mask should be included in buildup or not. More...
|
|
virtual const Image * | MaskOpacityImage (MaskType type=eMaskAny) const |
| Returns the effective area of the mask as an image. Use this to restrict the mask effect to certain pixels. More...
|
|
virtual float | MaskOffset (MaskType type=eMaskAny) const |
| Returns the offset of the mask. More...
|
|
virtual void | OnMaskChanged (MaskType type=eMaskAny) |
| Called by the kernel when the active stamp or stencil is changed on the UI. Override if you want to be notified when this happens. More...
|
|
virtual float | BuildUpRate (void) const |
| Returns the current build up rate (between 0 and 1). More...
|
|
virtual bool | PatchesAtRelease (void) const |
| Returns if the patchs should be applied at the end of stroke. More...
|
|
virtual bool | PressureControlsBrushSize (void) const |
| Returns if the pressure affects brush size. More...
|
|
virtual bool | PressureControlsBrushStrength (void) const |
| Returns if the pressure affects brush strength. More...
|
|
virtual bool | IsInverted (void) const |
| Returns the mode if inverted or not. More...
|
|
virtual bool | IsOrientedToSurface (void) const |
| Returns if the brush is aligned to the surface. More...
|
|
virtual void | SetOrientedToSurface (bool bOriented) |
| Sets if the brush is aligned to the surface. More...
|
|
virtual bool | IsStrokeOnCurveEnabled (void) const |
| Returns if the brush can be used as a tool for Stroke on curve function. More...
|
|
Direction | Direction (void) const |
| Returns the direction type. More...
|
|
virtual void | SetDirectionVector (const Vector &vDirection) const |
| When the current direction is calculated properly, the operation may want to call this routine to use the direction for the stamp transformation. More...
|
|
Vector | PreviousPatchPosition (void) const |
| Return the local position of the previous patch in this stroke. More...
|
|
virtual void | BeginStroke (Mesh *pMesh, Modifier eModifier, TriggerType eTriggerType) |
| Called when a new stroke is started. More...
|
|
virtual void | EndStroke (void) |
| Called when a stroke is finished. More...
|
|
virtual void | MouseMove (float fXPosition, float fYPosition, float fXDelta, float fYDelta, AxisAlignedBoundingBox &cDirtyWorldArea, float fPressure) |
| Called when the mouse is moved during a stroke. The default implementation calls AddPatch(). Positions are in range [0,1]. More...
|
|
virtual void | AddPatch (const SurfacePoint *pPoint, const Vector &vPatchCenter, float fSize, float fPressure, float fStrength, AxisAlignedBoundingBox &cDirtyWorldArea) |
| Called when a new surface point has to be added to the stroke. More...
|
|
virtual void | Flood (Mesh *pTarget, float fStrength=1.0f, bool bFromCamera=false) |
| Flood a mesh with the effect of the brush. More...
|
|
void | SetPatchParameters (const SurfacePoint *pS, float fSize, float fStrength, Vector vMove) |
| Set the effective parameters at the time of adding a patch. More...
|
|
float | EffectiveBrushSize (void) |
| Returns the size at patch time modified by pressure, stamp randomize and other possible factors. More...
|
|
float | EffectiveBrushStrength (void) |
| Returns the strength at patch time modified by pressure, stamp randomize and other possible factors. More...
|
|
virtual void | SetActiveConfiguration (BrushConfiguration *config) |
| Changes to the configuration. More...
|
|
virtual void | SetActiveConfiguration (const QString &sName) |
| Changes to the configuration. More...
|
|
virtual BrushConfiguration * | ActiveConfiguration (void) const |
| Returns the active configuration. More...
|
|
virtual void | ResetBrushConfiguration (void) |
| Reset the configuration to default. More...
|
|
const StampConfiguration & | StampConfig (void) const |
| Returns the structure with stamp properties. More...
|
|
void | SetStampConfig (StampConfiguration &newConfig) |
| Sets stamp configuration. More...
|
|
void | SetStamp (bool bEnable, const QString &sFileName="") |
| Convenience method for enabling stamp and setting stamp image. More...
|
|
void | SetBrushSizeScale (float fScale) |
| Set the scale amount of size according to the brush configuration. More...
|
|
void | SetBrushStrengthScale (float fScale) |
| Set the scale amount of strength according to the brush configuration. More...
|
|
bool | UsesGlobalBrushSize (void) const |
| Returns if the brush uses the global size. More...
|
|
Modifier | CurrentModifier (void) const |
| Returns the current modifier of the brush. More...
|
|
const MirrorConfiguration & | MirrorConfig (void) const |
| Returns the mirror configuration. More...
|
|
virtual void | SetMirrorConfig (MirrorConfiguration newConfig) |
| Sets mirror configuration. More...
|
|
virtual bool | IsConfigurationInited (BrushConfiguration *config) const |
| Returns if we already initialized the configuration with the default values. More...
|
|
virtual void | StoreConfiguration (BrushConfiguration *config) |
| Saves the configuration state (the attribute values) into memory The parameter is the configuration index defined in the config declaration. More...
|
|
virtual void | RestoreConfiguration (BrushConfiguration *config) |
| Reloads the configuration state from the saved buffer so it restores the same state when it was active last time. More...
|
|
virtual QString | OverlayIcon (void) |
| Returns the file name to be displayed as an overlay icon above the cursor. More...
|
|
virtual QPointF | OverlayOffset (void) |
| Returns an (x, y) offset relative to the mouse cursor where the icon should be displayed. More...
|
|
virtual bool | ExecuteAndInvert (void) |
| For storing and restoring undo/redo data. More...
|
|
virtual void | Serialize (Stream &s) |
| Serializing. More...
|
|
virtual BrushOperation & | operator= (const BrushOperation &op) |
| Value assignment operator. More...
|
|
virtual bool | CanLockLayer (void) const |
| Returns if using the brush will lock the active layer to the current subdivision level so it cannot be modified on other levels later. More...
|
|
virtual bool | CustomPicker (void) |
| Brushes can implement their own picker and return true if they handle picking in their own. More...
|
|
virtual Node * | AttributeHolderNode (void) |
| Returns the node that contains the displayed attribute list of the operation. More...
|
|
virtual void | SetFalloffIndex (int iIndex) |
| Internal use only. More...
|
|
virtual int | FalloffIndex (void) const |
| Internal use only. More...
|
|
virtual unsigned int | AlternateBehaviorCount (void) const |
| Returns the number of possible alternate behaviors for the brush. More...
|
|
virtual const BrushBehavior & | AlternateBehavior (unsigned int iIndex) const |
| Returns the given alternate behavior instance. More...
|
|
virtual bool | IsSnapToCurve (void) const |
| Returns true if snap mouse to active curve. More...
|
|
virtual float | SnapDistance (void) const |
| Returns the distance tolerance when snapping mouse to curves. More...
|
|
bool | StrokeInterrupted (void) const |
| Returns true if the stroke was interrupted, for example if the tool opened a window mid-stroke. More...
|
|
virtual bool | ShowBrushInStroke (void) const |
| Returns if the brush ring should be visible during the stroke. More...
|
|
virtual void | SetConstrainToSurface (bool bCts) |
| Sets if the brush should keep the surface curvature. More...
|
|
virtual bool | ConstrainToSurface () const |
| Returns ture if the stroke keep the surface curvature. More...
|
|
| Node (const QString &sStringID="", const QString &sDisplayName="") |
| Standard constructor. More...
|
|
virtual | ~Node (void) |
|
virtual void | Initialize (void) |
|
void | LoadTemplate (const QString &sFileName="", bool bStartEvent=false) |
| Use an external XML file to initialize the attributes. More...
|
|
void | SaveTemplate (const QString &sFileName="", bool bSaveOnlyVisible=false) |
| Save current attributes as an XML template. More...
|
|
unsigned int | Version (void) const |
| Returns the current version of the node. This number increases when the content of the node changed (when ContentChanged() called). More...
|
|
void | SetVersion (unsigned int iVersion) |
| Sets the current version number for the node. More...
|
|
unsigned int | ReferenceCount (void) const |
| Returns the number of pointers referencing this node. More...
|
|
Attribute * | ReferencePointer (unsigned int iIndex) const |
| Returns the address of an attribute which refers to this node. The type of the attribute is always aptr. More...
|
|
Node * | ReferenceNode (unsigned int iIndex) const |
| Returns the address of a node referencing this node. More...
|
|
virtual QString | Name (const ClassDesc *pClass=0) const |
| Deprecated. More...
|
|
virtual void | SetName (const QString &sName) |
| Deprecated. More...
|
|
virtual void | SetStringID (const QString &sStringID) |
| Sets the string id of the node. More...
|
|
virtual void | SetDisplayName (const QString &sDisplayName) |
| Sets the display name of the node. More...
|
|
virtual QString | HelpID (void) const |
| Returns the help entry id of the node. Can be overwritten in derived classes. More...
|
|
virtual void | SetHelpID (const QString &sHelpID) |
| Sets the help entry id of the node. More...
|
|
void | Annex (Node *pSource, const QString &sCategory="") |
| Relink all the attributes of the source node to this one. More...
|
|
bool | IsKindOf (const ClassDesc *pClass) const |
| Returns true if this node is derived from the pClass class. More...
|
|
void | ContentChanged (void) const |
| This function must be called if the content of the node is changed. More...
|
|
virtual void | CheckValidity (DiagnosticLevel iLevel=dgnLevel2) const |
| Checks the validity of this node. More...
|
|
virtual void | CopyTo (Node *pNode) const |
|
virtual Node * | Duplicate (void) const |
|
virtual void | OnEvent (const EventGate &cEvent) |
| This function is called when a generic event occurs. See EventGate class. More...
|
|
void | RequestDeferredEvent (Attribute &cAttribute) |
| Request for a deferred event, which will occur only in the main loop. More...
|
|
unsigned int | AttributeCount (void) const |
| Returns the number of attributes owned by the node. More...
|
|
Attribute * | AttributeByIndex (int iIndex) const |
| Returns a specified attribute (or 0 if iIndex is greater than the number of attributes). More...
|
|
Attribute * | AttributeByName (const QString &sName) const |
| Returns a specified attribute by its name. Returns 0 if the attribute not found. More...
|
|
Attribute * | AttributeByID (const QString &sID) const |
| Returns a specified attribute by its ID. Returns 0 if the attribute not found. More...
|
|
void | SetAttributeValue (const QString &sAttributeID, const QString &sNewValue) |
| Set the value of an attribute from a string. More...
|
|
QString | AttributeValue (const QString &sAttributeID) const |
| Returns the current value of an attribute as a string. More...
|
|
void | LogAttributes (void) const |
| Write all attributes into the log file. More...
|
|
virtual QWidget * | CreatePropertiesWindow (QWidget *pParent) |
| Create a window which displays the attributes of the node. Can be overriden to provide a custom interface. More...
|
|
Attribute * | AddAttribute (Attribute::AttributeType type, const QString &id) |
| Allows SDK users to add attributes at runtime. More...
|
|
Node * | Next (void) const |
| Returns the next node in the chain. Used to enumerate the current nodes. See also First(). More...
|
|
int | ID (void) const |
| Returns an ID for the node. The ID is unique in the whole application life. More...
|
|
bool | SetID (int iID) |
| Set ID for the node. More...
|
|