EditRegularShapeParam Class Reference

The OpParam to use when calling OpEditRegularShape. Used to pass in the shape(s) to edit and what to change them to. ChangeShape points to a specific NodeRegularShape to edit or is NULL to indicate all slected shapes should be changed ShapeData points to a NodeRegularShape whose data members are copied into ChangeShape. More...

#include <shapeops.h>

Inheritance diagram for EditRegularShapeParam:

OpParam CCObject SimpleCCObject List of all members.

Public Types

enum  BooleanChange { CHANGE_DONTCARE, CHANGE_SETFALSE, CHANGE_SETTRUE }
enum  AffectShape { AFFECT_ALL, AFFECT_ELLIPSES, AFFECT_RECTANGLES }

Public Member Functions

 EditRegularShapeParam (NodeRegularShape *ChangeShapes)
 EditRegularShapeParam constructor - sets all member items to unchange. After constructing the object, the caller should set those items that it wants OpEditRegularShape to change.

Public Attributes

NodeRegularShapeShapeToChange
AffectShape ShapesToAffect
PathNewEdgePath1
PathNewEdgePath2
UINT32 NewNumSides
BooleanChange NewCircular
BooleanChange NewStellated
BooleanChange NewPrimaryCurvature
BooleanChange NewStellationCurvature
double NewStellRadiusToPrimary
double NewPrimaryCurveToPrimary
double NewStellCurveToStell
double NewStellOffsetRatio
DocCoord TranslateTo
DocCoord TranslateBy
INT32 SetRadiusLength
INT32 AddRadiusLength
double RotateTo
double RotateBy
INT32 SetStellationLength
INT32 AddStellationLength
double SetStellationOffset
double AddStellationOffset
double AddPrimaryCurvature
double AddStellationCurvature
INT32 SetMajorAxisLength
INT32 AddMajorAxisLength
INT32 SetMinorAxisLength
INT32 AddMinorAxisLength

Detailed Description

The OpParam to use when calling OpEditRegularShape. Used to pass in the shape(s) to edit and what to change them to. ChangeShape points to a specific NodeRegularShape to edit or is NULL to indicate all slected shapes should be changed ShapeData points to a NodeRegularShape whose data members are copied into ChangeShape.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/12/94
See also:
EditRegularShapeParam::DoWithParam

Definition at line 147 of file shapeops.h.


Member Enumeration Documentation

enum EditRegularShapeParam::AffectShape
 

Enumerator:
AFFECT_ALL 
AFFECT_ELLIPSES 
AFFECT_RECTANGLES 

Definition at line 153 of file shapeops.h.

enum EditRegularShapeParam::BooleanChange
 

Enumerator:
CHANGE_DONTCARE 
CHANGE_SETFALSE 
CHANGE_SETTRUE 

Definition at line 152 of file shapeops.h.


Constructor & Destructor Documentation

EditRegularShapeParam::EditRegularShapeParam NodeRegularShape ChangeShapes  ) 
 

EditRegularShapeParam constructor - sets all member items to unchange. After constructing the object, the caller should set those items that it wants OpEditRegularShape to change.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/12/94
Parameters:
ChangeShapes - pointer to the shape to change OR NULL to change all selected shapes [INPUTS]

Definition at line 202 of file shapeops.cpp.

00203 {                              
00204     ShapeToChange = ChangeShapes;
00205     ShapesToAffect = AFFECT_ALL;
00206     
00207     NewEdgePath1 = NULL;    
00208     NewEdgePath2 = NULL;    
00209     NewNumSides = 0;        
00210     NewCircular = CHANGE_DONTCARE;
00211     NewStellated = CHANGE_DONTCARE;
00212     NewPrimaryCurvature = CHANGE_DONTCARE;
00213     NewStellationCurvature = CHANGE_DONTCARE;
00214     NewStellRadiusToPrimary = -1.0; 
00215     NewPrimaryCurveToPrimary = -1.0;    
00216     NewStellCurveToStell = -1.0;        
00217     NewStellOffsetRatio = -1000.0;
00218 //  NewCentrePoint = DontCare;      
00219 //  NewMajorAxes = DontCare;        
00220 //  NewMinorAxes = DontCare;        
00221 
00222     TranslateTo = DontCare;     
00223     TranslateBy = DontCare;     
00224     SetRadiusLength = -1;
00225     AddRadiusLength = -1;
00226     RotateTo = -1000.0;         
00227     RotateBy = -1000.0;         
00228     SetStellationLength = -1;   
00229     AddStellationLength = -1;   
00230     SetStellationOffset = -1000.0;
00231     AddStellationOffset = -1000.0;
00232     AddPrimaryCurvature = 0.0;
00233     AddStellationCurvature = 0.0;
00234     SetMajorAxisLength = 0;
00235     AddMajorAxisLength = 0;
00236     SetMinorAxisLength = 0;
00237     AddMinorAxisLength = 0;
00238 }


Member Data Documentation

INT32 EditRegularShapeParam::AddMajorAxisLength
 

Definition at line 184 of file shapeops.h.

INT32 EditRegularShapeParam::AddMinorAxisLength
 

Definition at line 186 of file shapeops.h.

double EditRegularShapeParam::AddPrimaryCurvature
 

Definition at line 181 of file shapeops.h.

INT32 EditRegularShapeParam::AddRadiusLength
 

Definition at line 174 of file shapeops.h.

double EditRegularShapeParam::AddStellationCurvature
 

Definition at line 182 of file shapeops.h.

INT32 EditRegularShapeParam::AddStellationLength
 

Definition at line 178 of file shapeops.h.

double EditRegularShapeParam::AddStellationOffset
 

Definition at line 180 of file shapeops.h.

BooleanChange EditRegularShapeParam::NewCircular
 

Definition at line 162 of file shapeops.h.

Path* EditRegularShapeParam::NewEdgePath1
 

Definition at line 159 of file shapeops.h.

Path* EditRegularShapeParam::NewEdgePath2
 

Definition at line 160 of file shapeops.h.

UINT32 EditRegularShapeParam::NewNumSides
 

Definition at line 161 of file shapeops.h.

BooleanChange EditRegularShapeParam::NewPrimaryCurvature
 

Definition at line 164 of file shapeops.h.

double EditRegularShapeParam::NewPrimaryCurveToPrimary
 

Definition at line 167 of file shapeops.h.

BooleanChange EditRegularShapeParam::NewStellated
 

Definition at line 163 of file shapeops.h.

BooleanChange EditRegularShapeParam::NewStellationCurvature
 

Definition at line 165 of file shapeops.h.

double EditRegularShapeParam::NewStellCurveToStell
 

Definition at line 168 of file shapeops.h.

double EditRegularShapeParam::NewStellOffsetRatio
 

Definition at line 169 of file shapeops.h.

double EditRegularShapeParam::NewStellRadiusToPrimary
 

Definition at line 166 of file shapeops.h.

double EditRegularShapeParam::RotateBy
 

Definition at line 176 of file shapeops.h.

double EditRegularShapeParam::RotateTo
 

Definition at line 175 of file shapeops.h.

INT32 EditRegularShapeParam::SetMajorAxisLength
 

Definition at line 183 of file shapeops.h.

INT32 EditRegularShapeParam::SetMinorAxisLength
 

Definition at line 185 of file shapeops.h.

INT32 EditRegularShapeParam::SetRadiusLength
 

Definition at line 173 of file shapeops.h.

INT32 EditRegularShapeParam::SetStellationLength
 

Definition at line 177 of file shapeops.h.

double EditRegularShapeParam::SetStellationOffset
 

Definition at line 179 of file shapeops.h.

AffectShape EditRegularShapeParam::ShapesToAffect
 

Definition at line 158 of file shapeops.h.

NodeRegularShape* EditRegularShapeParam::ShapeToChange
 

Definition at line 157 of file shapeops.h.

DocCoord EditRegularShapeParam::TranslateBy
 

Definition at line 172 of file shapeops.h.

DocCoord EditRegularShapeParam::TranslateTo
 

Definition at line 171 of file shapeops.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:55 2007 for Camelot by  doxygen 1.4.4