[Classes] [Prev] [Next] [Methods]

CRegularPoly

Methods Index

Heritage
Description
Usage
Environment
Protected Data Members
Public Methods
Constructor, Destructor, and Initializer Methods
Utility Methods
Protected Methods

CRegularPoly


Heritage

Superclass: CPolygon

Subclasses: None


Description

CRegularPoly objects paint a regular polygon inside a CSubview.


Usage

Create a CRegularPoly object and initialize it. Like all shapes, this class inherits all properties of CSubview, such as stickiness, enclosure, and so on.


Environment

The lines in the regular polygon are drawn with the pen; its interior is painted with the brush. You can set the color and pattern of both the pen and the brush. Also, you can set the pen width.


Protected Data Members

float itsStartingAngle; Drawing reference angle
UNITS itsRadius; Distance from center to a vertex
CPoint* itsCenter; The center of the regular polygon


Public Methods

Constructor, Destructor, and Initializer Methods

CRegularPoly(CSubview* theEnclosure,
const CPoint& theCenterPoint, UNITS theRadius,
int theNumberOfSides, float theStartingAngle = 0.0);

CRegularPoly(const CRegularPoly& thePolygon);
CRegularPoly& operator=(
const CRegularPoly& thePolygon);
virtual ~CRegularPoly(void);
BOOLEAN IRegularPoly(int theNumberOfSides, 
BOOLEAN isInteriorDrawn = FALSE,
BOOLEAN isVisible = TRUE,
long theGlue = NULLSTICKY);

Utility Methods

virtual void Size(const CRect& theNewSize);
virtual void Rotate(float theNumOfDegrees);

virtual float GetStartingAngle(void);
virtual void SetNumberOfSides(int theNumberOfSides);
virtual int GetNumberOfSides(void) const;
virtual void SetDragging(BOOLEAN isDraggable);
virtual void SetSizing(BOOLEAN isSizable);

Protected Methods

void CalculatePoints(void);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.