CSlice Class Reference

Simple class, stores the data required for each slice. More...

#include <slice.h>

List of all members.

Public Member Functions

 CSlice ()
 Creates a slice object either empty or pre-filled.
 CSlice (INT32 Ax, INT32 Ay, INT32 Cx, INT32 Cy, String_256 ThisName="", String_16 FileExt="gif", BOOL Named=FALSE)
void SwapSpreadAndSliceCoords ()
 Reverses the y-axis to convert between spread co-ords and slice co-ords Call it again to swap back between co-ord systems.

Public Attributes

INT32 top
INT32 bottom
INT32 left
INT32 right
INT32 row
INT32 colm
INT32 rowspan
INT32 colmspan
INT32 rowheight
INT32 colmwidth
BOOL deleteme
String_256 name
String_16 FileTypeExtStr
BOOL IsNamedSlice
INT32 ButtonNumber
BOOL IsEmpty
BOOL HasURL
TCHARpFrameText
BYTE ExistsOnLayerState [4]


Detailed Description

Simple class, stores the data required for each slice.

Author:
Simon_Knight (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/7/99
See also:
OpSlice

Definition at line 138 of file slice.h.


Constructor & Destructor Documentation

CSlice::CSlice  ) 
 

Creates a slice object either empty or pre-filled.

Author:
Simon_Knight (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/7/99
Returns:

Errors: -

Definition at line 180 of file slice.cpp.

00181 {
00182     top = bottom = left = right = 0;
00183     row = colm = -1;
00184     rowspan = colmspan = 1;
00185     rowheight = colmwidth = 0;
00186     name.Empty();
00187     FileTypeExtStr = "gif";
00188     deleteme = FALSE;
00189     IsNamedSlice = FALSE;
00190     ButtonNumber = 0;
00191     IsEmpty = FALSE;
00192     HasURL = FALSE;
00193     pFrameText = NULL;
00194     ExistsOnLayerState[0] = 0;
00195     ExistsOnLayerState[1] = 0;
00196     ExistsOnLayerState[2] = 0;
00197     ExistsOnLayerState[3] = 0;
00198 }

CSlice::CSlice INT32  Ax,
INT32  Ay,
INT32  Cx,
INT32  Cy,
String_256  ThisName = "",
String_16  FileExt = "gif",
BOOL  Named = FALSE
 

Definition at line 200 of file slice.cpp.

00201 {
00202     top = min(Ay, Cy);
00203     left = min(Ax, Cx);
00204     right = max(Ax, Cx);
00205     bottom = max(Ay, Cy);
00206     name = ThisName;
00207     row = colm = -1;
00208     rowspan = colmspan = 1;
00209     rowheight = colmwidth = 0;
00210     FileTypeExtStr = FileExt;
00211     deleteme = FALSE;
00212     IsNamedSlice = Named;
00213     ButtonNumber = 0;
00214     IsEmpty = FALSE;
00215     HasURL = FALSE;
00216     pFrameText = NULL;
00217     ExistsOnLayerState[0] = 0;
00218     ExistsOnLayerState[1] = 0;
00219     ExistsOnLayerState[2] = 0;
00220     ExistsOnLayerState[3] = 0;
00221 }


Member Function Documentation

void CSlice::SwapSpreadAndSliceCoords  ) 
 

Reverses the y-axis to convert between spread co-ords and slice co-ords Call it again to swap back between co-ord systems.

Author:
Simon_Knight (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Returns:

Errors: -

Definition at line 235 of file slice.cpp.

00236 {
00237     INT32 temp = top;
00238     top = -bottom;
00239     bottom = -temp;
00240 }


Member Data Documentation

INT32 CSlice::bottom
 

Definition at line 152 of file slice.h.

INT32 CSlice::ButtonNumber
 

Definition at line 170 of file slice.h.

INT32 CSlice::colm
 

Definition at line 158 of file slice.h.

INT32 CSlice::colmspan
 

Definition at line 160 of file slice.h.

INT32 CSlice::colmwidth
 

Definition at line 162 of file slice.h.

BOOL CSlice::deleteme
 

Definition at line 164 of file slice.h.

BYTE CSlice::ExistsOnLayerState[4]
 

Definition at line 175 of file slice.h.

String_16 CSlice::FileTypeExtStr
 

Definition at line 167 of file slice.h.

BOOL CSlice::HasURL
 

Definition at line 172 of file slice.h.

BOOL CSlice::IsEmpty
 

Definition at line 171 of file slice.h.

BOOL CSlice::IsNamedSlice
 

Definition at line 169 of file slice.h.

INT32 CSlice::left
 

Definition at line 153 of file slice.h.

String_256 CSlice::name
 

Definition at line 166 of file slice.h.

TCHAR* CSlice::pFrameText
 

Definition at line 173 of file slice.h.

INT32 CSlice::right
 

Definition at line 154 of file slice.h.

INT32 CSlice::row
 

Definition at line 157 of file slice.h.

INT32 CSlice::rowheight
 

Definition at line 161 of file slice.h.

INT32 CSlice::rowspan
 

Definition at line 159 of file slice.h.

INT32 CSlice::top
 

Definition at line 151 of file slice.h.


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