LibreOffice Module svx (master)  1
Public Member Functions | Public Attributes | List of all members
GeoStat Class Reference

The transformation of a rectangle into a polygon, by using angle parameters from GeoStat. More...

#include <svdtrans.hxx>

Public Member Functions

 GeoStat ()
 
void RecalcSinCos ()
 
void RecalcTan ()
 

Public Attributes

long nRotationAngle
 
long nShearAngle
 
double nTan
 
double nSin
 
double nCos
 

Detailed Description

The transformation of a rectangle into a polygon, by using angle parameters from GeoStat.


The point of reference is always the Point 0, meaning /1 2/ the upper left corner of the initial rectangle. / / When calculating the polygon, the order is first / / shear and then the rotation. / / / / \ / / | A) Initial rectangle aRect B) After applying Shear /0 3/ Rot| +---------------—+ -----------------— ---------------— |0 1| \0 1\ C) After applying Rotate | | \ \ | | | \ \ |3 2| | \3 2\ +---------------—+ | -----------------— |Shr

When converting the polygon back into a rect, the order is necessarily the other way around:

We need to keep in mind that the polygon can be mirrored when it was transformed in the meantime (e.g. mirror or resize with negative factor). In that case, we first need to normalize, by swapping points (0 with 3 and 1 with 2), so that it has the right orientation.

Note: a positive shear angle means a shear with a positive visible curvature on the screen. Mathematically, that would be a negative curvature, as the Y axis runs from top to bottom on the screen. Rotation angle: positive means a visible left rotation.

Definition at line 214 of file svdtrans.hxx.

Constructor & Destructor Documentation

GeoStat::GeoStat ( )
inline

Definition at line 222 of file svdtrans.hxx.

Member Function Documentation

void GeoStat::RecalcSinCos ( )
void GeoStat::RecalcTan ( )

Member Data Documentation

double GeoStat::nCos
long GeoStat::nRotationAngle

Definition at line 216 of file svdtrans.hxx.

Referenced by SdrRectObj::AddToHdlList(), SdrCircObj::AddToHdlList(), SdrTextObj::AddToHdlList(), SdrObjCustomShape::AdjustTextFrameWidthAndHeight(), SdrTextObj::AdjustTextFrameWidthAndHeight(), SdrRectObj::applySpecialDrag(), SdrCircObj::applySpecialDrag(), SdrTextObj::applySpecialDrag(), SdrTextObj::BegTextEdit(), sdr::contact::ViewContactOfSdrOle2Obj::createObjectTransform(), sdr::contact::ViewContactOfSdrRectObj::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfSdrPathObj::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfSdrCircObj::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfSdrObjCustomShape::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfGraphic::createViewIndependentPrimitive2DSequence(), SdrGrafObj::DoConvertToPolyObj(), SdrObjCustomShape::DragResizeCustomShape(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrRectObj::GetCornerGluePoint(), sdr::contact::ViewContactOfSdrObjCustomShape::getCorrectedTextBoundRect(), SdrGrafObj::GetGraphicAttr(), SvxIMapInfo::GetHitIMapObject(), SdrTextObj::GetSnapPoint(), SdrRectObj::getSpecialDragComment(), SdrTextObj::GetTextScrollMetaFileAndRectangle(), SdrRectObj::GetVertexGluePoint(), SdrObjCustomShape::GetVertexGluePoint(), SdrRectObj::ImpCalcXPoly(), SdrCircObj::ImpCalcXPolyCirc(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), SdrEditView::ImpDismantleOneObject(), SdrTextObj::ImpDragCalcRect(), SdrPathObj::ImpForceLineAngle(), SdrTextObj::ImpSetContourPolygon(), SdrCircObj::NbcMirror(), SdrObjCustomShape::NbcMirror(), SdrUnoObj::NbcResize(), SdrCircObj::NbcResize(), SdrObjCustomShape::NbcRotate(), SdrCircObj::NbcSetSnapRect(), SdrObjCustomShape::NbcShear(), SdrCircObj::PaintNeedsXPolyCirc(), Poly2Rect(), RecalcSinCos(), SdrRectObj::RecalcSnapRect(), SdrTextObj::RecalcSnapRect(), Rect2Poly(), SdrTextObj::TakeContour(), SdrRectObj::TakeObjInfo(), SdrGrafObj::TakeObjInfo(), SdrTextObj::TakeObjInfo(), SdrObjCustomShape::TakeTextAnchorRect(), SdrTextObj::TakeTextAnchorRect(), SdrObjCustomShape::TakeTextEditArea(), SdrTextObj::TakeTextEditArea(), SdrObjCustomShape::TakeTextRect(), SdrTextObj::TakeTextRect(), SdrPathObj::TakeUnrotatedSnapRect(), SdrMeasureObj::TakeUnrotatedSnapRect(), SdrCircObj::TakeUnrotatedSnapRect(), SdrTextObj::TakeXorPoly(), SdrPathObj::TRGetBaseGeometry(), SdrTextObj::TRGetBaseGeometry(), SdrPathObj::TRSetBaseGeometry(), SdrObjCustomShape::TRSetBaseGeometry(), and SdrTextObj::TRSetBaseGeometry().

long GeoStat::nShearAngle

Definition at line 217 of file svdtrans.hxx.

Referenced by SdrRectObj::AddToHdlList(), SdrCircObj::AddToHdlList(), SdrTextObj::AddToHdlList(), SdrCircObj::applySpecialDrag(), SdrTextObj::applySpecialDrag(), sdr::contact::ViewContactOfSdrOle2Obj::createObjectTransform(), sdr::contact::ViewContactOfSdrRectObj::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfSdrCircObj::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfSdrPathObj::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfSdrObjCustomShape::createViewIndependentPrimitive2DSequence(), sdr::contact::ViewContactOfGraphic::createViewIndependentPrimitive2DSequence(), SdrGrafObj::DoConvertToPolyObj(), SdrObjCustomShape::DragResizeCustomShape(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrRectObj::GetCornerGluePoint(), sdr::contact::ViewContactOfSdrObjCustomShape::getCorrectedTextBoundRect(), SvxIMapInfo::GetHitIMapObject(), SdrTextObj::GetSnapPoint(), SdrRectObj::GetVertexGluePoint(), SdrObjCustomShape::GetVertexGluePoint(), SdrRectObj::ImpCalcXPoly(), SdrCircObj::ImpCalcXPolyCirc(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), SdrTextObj::ImpCheckShear(), SdrTextObj::ImpDragCalcRect(), SdrPathObj::ImpForceLineAngle(), SdrCircObj::NbcMirror(), SdrUnoObj::NbcResize(), SdrCircObj::NbcResize(), SdrCircObj::NbcSetSnapRect(), SdrCircObj::PaintNeedsXPolyCirc(), Poly2Rect(), SdrRectObj::RecalcSnapRect(), SdrTextObj::RecalcSnapRect(), RecalcTan(), Rect2Poly(), SdrRectObj::TakeObjNamePlural(), SdrCircObj::TakeObjNamePlural(), SdrRectObj::TakeObjNameSingul(), SdrCircObj::TakeObjNameSingul(), SdrRectObj::TakeUnrotatedSnapRect(), SdrCircObj::TakeUnrotatedSnapRect(), SdrTextObj::TakeXorPoly(), SdrPathObj::TRGetBaseGeometry(), SdrObjCustomShape::TRGetBaseGeometry(), SdrTextObj::TRGetBaseGeometry(), SdrPathObj::TRSetBaseGeometry(), SdrObjCustomShape::TRSetBaseGeometry(), and SdrTextObj::TRSetBaseGeometry().

double GeoStat::nSin
double GeoStat::nTan

The documentation for this class was generated from the following files: