#include <rs.h>
Public Types | |
| enum | Flags { FlagUndone = 1<<0, FlagVisible = 1<<1, FlagByLayer = 1<<2, FlagByBlock = 1<<3, FlagFrozen = 1<<4, FlagDefFrozen = 1<<5, FlagLocked = 1<<6, FlagInvalid = 1<<7, FlagSelected = 1<<8, FlagClosed = 1<<9, FlagTemp = 1<<10, FlagProcessed = 1<<11, FlagSelected1 = 1<<12, FlagSelected2 = 1<<13, FlagHighlighted = 1<<14 } |
| Flags. More... | |
| enum | VariableType { VariableString, VariableInt, VariableDouble, VariableVector, VariableVoid } |
| Variable types used by RS_VariableDict and RS_Variable. | |
| enum | FormatType { FormatUnknown, FormatDxf1, FormatDxf, FormatDxf12, FormatCxf, FormatCam, FormatRedf } |
| File types. More... | |
| enum | EntityType { EntityUnknown, EntityContainer, EntityBlock, EntityFontChar, EntityInsert, EntityGraphic, EntityPoint, EntityLine, EntityPolyline, EntityVertex, EntityArc, EntityCircle, EntityEllipse, EntitySolid, EntityConstructionLine, EntityText, EntityDimAligned, EntityDimLinear, EntityDimRadial, EntityDimDiametric, EntityDimAngular, EntityDimLeader, EntityHatch, EntityImage, EntitySpline } |
| Entity types returned by the rtti() method. More... | |
| enum | ActionType { ActionNone, ActionBack, ActionForward, ActionDefault, ActionFileNew, ActionFileOpen, ActionFileSave, ActionFileSaveAs, ActionFileExport, ActionFileClose, ActionFilePrint, ActionFilePrintPreview, ActionFilePdf, ActionFileQuit, ActionPrintPreview, ActionEditUndo, ActionEditRedo, ActionEditCut, ActionEditCutNoSelect, ActionEditCopy, ActionEditCopyNoSelect, ActionEditPaste, ActionViewStatusBar, ActionViewLayerList, ActionViewBlockList, ActionViewCommandLine, ActionViewOptionToolbar, ActionViewGrid, ActionViewDraft, ActionZoomIn, ActionZoomOut, ActionZoomAuto, ActionZoomAutoY, ActionZoomWindow, ActionZoomPan, ActionZoomRedraw, ActionZoomScroll, ActionZoomPrevious, ActionSelectSingle, ActionSelectContour, ActionSelectWindow, ActionDeselectWindow, ActionSelectAll, ActionDeselectAll, ActionSelectIntersected, ActionDeselectIntersected, ActionSelectInvert, ActionSelectLayer, ActionSelectDouble, ActionDrawArc, ActionDrawArc3P, ActionDrawArcParallel, ActionDrawArcTangential, ActionDrawCircle, ActionDrawCircle2P, ActionDrawCircle3P, ActionDrawCircleCR, ActionDrawCircleParallel, ActionDrawEllipseArcAxis, ActionDrawEllipseAxis, ActionDrawHatch, ActionDrawHatchNoSelect, ActionDrawImage, ActionDrawLine, ActionDrawLineAngle, ActionDrawLineBisector, ActionDrawLineFree, ActionDrawLineHorVert, ActionDrawLineHorizontal, ActionDrawLineOrthogonal, ActionDrawLineParallel, ActionDrawLineParallelThrough, ActionDrawLinePolygon, ActionDrawLinePolygon2, ActionDrawLineRectangle, ActionDrawLineRelAngle, ActionDrawLineTangent1, ActionDrawLineTangent2, ActionDrawLineVertical, ActionDrawPoint, ActionDrawSpline, ActionDrawPolyline, ActionDrawText, ActionPolylineAdd, ActionPolylineAppend, ActionPolylineDel, ActionPolylineDelBetween, ActionPolylineTrim, ActionPolylineEquidistant, ActionPolylineFromSegments, ActionDimAligned, ActionDimLinear, ActionDimLinearVer, ActionDimLinearHor, ActionDimRadial, ActionDimDiametric, ActionDimAngular, ActionDimLeader, ActionModifyAttributes, ActionModifyAttributesNoSelect, ActionModifyDelete, ActionModifyDeleteNoSelect, ActionModifyDeleteQuick, ActionModifyDeleteFree, ActionModifyMove, ActionModifyMoveNoSelect, ActionModifyRotate, ActionModifyRotateNoSelect, ActionModifyScale, ActionModifyScaleNoSelect, ActionModifyMirror, ActionModifyMirrorNoSelect, ActionModifyMoveRotate, ActionModifyMoveRotateNoSelect, ActionModifyRotate2, ActionModifyRotate2NoSelect, ActionModifyEntity, ActionModifyTrim, ActionModifyTrim2, ActionModifyTrimAmount, ActionModifyCut, ActionModifyCut2, ActionModifyStretch, ActionModifyBevel, ActionModifyRound, ActionModifyText, ActionModifyToBack, ActionModifyToBackNoSelect, ActionModifyToFront, ActionModifyToFrontNoSelect, ActionSnapFree, ActionSnapGrid, ActionSnapEndpoint, ActionSnapOnEntity, ActionSnapCenter, ActionSnapMiddle, ActionSnapDist, ActionSnapIntersection, ActionSnapIntersectionManual, ActionSnapCoordinate, ActionSnapCoordinatePolar, ActionRestrictNothing, ActionRestrictOrthogonal, ActionRestrictHorizontal, ActionRestrictVertical, ActionSetRelativeZero, ActionToggleLockRelativeZero, ActionLockRelativeZero, ActionUnlockRelativeZero, ActionInfoInside, ActionInfoDist, ActionInfoDist2, ActionInfoAngle, ActionInfoTotalLength, ActionInfoTotalLengthNoSelect, ActionInfoArea, ActionLayersDefreezeAll, ActionLayersFreezeAll, ActionLayersAdd, ActionLayersRemove, ActionLayersEdit, ActionLayersToggleView, ActionLayersToggleLock, ActionBlocksDefreezeAll, ActionBlocksFreezeAll, ActionBlocksAdd, ActionBlocksRemove, ActionBlocksAttributes, ActionBlocksEdit, ActionBlocksInsert, ActionBlocksToggleView, ActionBlocksCreate, ActionBlocksCreateNoSelect, ActionBlocksExplode, ActionBlocksExplodeNoSelect, ActionModifyExplodeText, ActionModifyExplodeTextNoSelect, ActionLibraryInsert, ActionOptionsGeneral, ActionOptionsDrawing, ActionToolRegenerateDimensions, ActionScriptOpenIde, ActionScriptRun, ActionPARISDebugCreateContainer, ActionDebugEntities, ActionDebugResize, ActionLast } |
| Action types used by action factories. More... | |
| enum | Ending { EndingStart, EndingEnd, EndingNone } |
| Entity ending. More... | |
| enum | UpdateMode { NoUpdate, Update, PreviewUpdate } |
| Update mode for non-atomic entities that need to be updated when they change. More... | |
| enum | DrawingMode { ModeFull, ModeAuto, ModePreview, ModeXor, ModeBW } |
| Drawing mode. More... | |
| enum | UndoableType { UndoableUnknown, UndoableEntity, UndoableLayer } |
| Undoable rtti. More... | |
| enum | ToolBarId { ToolBarMain, ToolBarPoints, ToolBarLines, ToolBarArcs, ToolBarCircles, ToolBarEllipses, ToolBarSplines, ToolBarPolylines, ToolBarText, ToolBarDim, ToolBarSnap, ToolBarModify, ToolBarSelect, ToolBarInfo } |
| Toolbar ID's. More... | |
| enum | Unit { None = 0, Inch = 1, Foot = 2, Mile = 3, Millimeter = 4, Centimeter = 5, Meter = 6, Kilometer = 7, Microinch = 8, Mil = 9, Yard = 10, Angstrom = 11, Nanometer = 12, Micron = 13, Decimeter = 14, Decameter = 15, Hectometer = 16, Gigameter = 17, Astro = 18, Lightyear = 19, Parsec = 20, Plu = 21, LastUnit = 22 } |
| Units. More... | |
| enum | LinearFormat { Scientific, Decimal, Engineering, Architectural, Fractional } |
| Format for length values. More... | |
| enum | AngleUnit { Deg, Rad, Gra } |
| Angle Units. More... | |
| enum | AngleFormat { DegreesDecimal, DegreesMinutesSeconds, Gradians, Radians, Surveyors } |
| Display formats for angles. More... | |
| enum | ResolveLevel { ResolveNone, ResolveAll } |
| Enum of levels of resolving when iterating through an entity tree. More... | |
| enum | Direction { Up, Left, Right, Down } |
| Direction used for scrolling actions. | |
| enum | Side { RightHand, LeftHand, NoSide } |
| Side used for side of a point relativ to an entity (right hand or left hand side). | |
| enum | VAlign { VAlignTop, VAlignMiddle, VAlignBottom } |
| Vertical alignments. More... | |
| enum | HAlign { HAlignLeft, HAlignCenter, HAlignRight } |
| Horizontal alignments. More... | |
| enum | TextDrawingDirection { LeftToRight, TopToBottom, ByStyle } |
| Text drawing direction. More... | |
| enum | TextLineSpacingStyle { AtLeast, Exact } |
| Line spacing style for texts. More... | |
| enum | LeaderPathType { Straight, Spline } |
| Leader path type. More... | |
| enum | ZoomDirection { In, Out } |
| Direction for zooming actions. | |
| enum | Axis { OnlyX, OnlyY, Both } |
| Axis specification for zooming actions. | |
| enum | ButtonState { NoButton = Qt::NoButton, LeftButton = Qt::LeftButton, RightButton = Qt::RightButton, MidButton = Qt::MidButton } |
| Mouse button and keyboard state for mouse events. | |
| enum | LineType { NoPen = 0, SolidLine = 1, DotLine = 2, DotLine2 = 3, DotLineX2 = 4, DashLine = 5, DashLine2 = 6, DashLineX2 = 7, DashDotLine = 8, DashDotLine2 = 9, DashDotLineX2 = 10, DivideLine = 11, DivideLine2 = 12, DivideLineX2 = 13, CenterLine = 14, CenterLine2 = 15, CenterLineX2 = 16, BorderLine = 17, BorderLine2 = 18, BorderLineX2 = 19, LineByLayer = -1, LineByBlock = -2 } |
| Enum of line styles:. More... | |
| enum | LineWidth { Width00 = 0, Width01 = 5, Width02 = 9, Width03 = 13, Width04 = 15, Width05 = 18, Width06 = 20, Width07 = 25, Width08 = 30, Width09 = 35, Width10 = 40, Width11 = 50, Width12 = 53, Width13 = 60, Width14 = 70, Width15 = 80, Width16 = 90, Width17 = 100, Width18 = 106, Width19 = 120, Width20 = 140, Width21 = 158, Width22 = 200, Width23 = 211, WidthByLayer = -1, WidthByBlock = -2, WidthDefault = -3 } |
| Enum of line widths:. More... | |
| enum | CursorType { ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor, IbeamCursor, SizeVerCursor, SizeHorCursor, SizeBDiagCursor, SizeFDiagCursor, SizeAllCursor, BlankCursor, SplitVCursor, SplitHCursor, PointingHandCursor, ForbiddenCursor, WhatsThisCursor, CadCursor, DelCursor, SelectCursor, MagnifierCursor, MovingHandCursor } |
| Enum of cursor types. More... | |
| enum | PaperFormat { Custom, Letter, Legal, Executive, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, C5E, Comm10E, DLE, Folio, Tabloid, NPageSize } |
| Paper formats. | |
Static Public Member Functions | |
| static RS2::ButtonState | qtToRsButtonState (Qt::MouseButton t) |
| Wrapper for Qt. | |
| static Qt::PenStyle | rsToQtLineType (RS2::LineType t) |
| Wrapper for Qt. | |
| static LineWidth | intToLineWidth (int w) |
| Converts and int (see DXF doc) to a line width struct. | |
| static Qt::CursorShape | rsToQtCursorType (RS2::CursorType t) |
| Wrapper for Qt. | |
| static QPrinter::PageSize | rsToQtPaperFormat (RS2::PaperFormat f) |
| Wrapper for Qt. | |
Public Attributes | |
| RS2::LineTypePatternStruct | LineTypePattern |
| Struct that stores a line type pattern (e.g. | |
Classes | |
| struct | LineTypePatternStruct |
| Struct that stores a line type pattern (e.g. More... | |
|
|
Action types used by action factories.
|
|
|
Display formats for angles.
|
|
|
Angle Units.
|
|
|
|
Drawing mode.
|
|
|
Entity ending. Used for returning which end of an entity is ment. |
|
|
Entity types returned by the rtti() method.
|
|
|
Flags.
|
|
|
File types. Used by file dialogs. Note: the extension might not be enough to distinguish file types. |
|
|
Horizontal alignments.
|
|
|
Leader path type.
|
|
|
Format for length values.
|
|
|
Enum of line styles:.
|
|
|
Enum of line widths:.
|
|
|
Enum of levels of resolving when iterating through an entity tree.
|
|
|
Text drawing direction.
|
|
|
Line spacing style for texts.
|
|
|
Toolbar ID's.
|
|
|
Undoable rtti.
|
|
|
Units.
|
|
|
Update mode for non-atomic entities that need to be updated when they change. e.g. texts, inserts, ... |
|
|
Vertical alignments.
|
|
|
Struct that stores a line type pattern (e.g. dash dot dot). |
1.4.4