labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Axis Class Reference

Axis for cartesian coordinate systems. More...

#include <Axis.h>

Inheritance diagram for Axis:
[legend]
Collaboration diagram for Axis:
[legend]

Public Types

enum class  Position {
  Top , Bottom , Left , Right ,
  Centered , Custom
}
 
enum class  LabelsFormat {
  Decimal , ScientificE , Powers10 , Powers2 ,
  PowersE , MultipliesPi
}
 
enum  TicksFlags { noTicks = 0x00 , ticksIn = 0x01 , ticksOut = 0x02 , ticksBoth = 0x03 }
 
enum class  TicksType { TotalNumber , Spacing , CustomColumn , CustomValues }
 
enum class  ArrowType {
  NoArrow , SimpleSmall , SimpleBig , FilledSmall ,
  FilledBig , SemiFilledSmall , SemiFilledBig
}
 
enum class  ArrowPosition { Left , Right , Both }
 
enum class  Scale {
  Linear , Log10 , Log2 , Ln ,
  Sqrt , X2
}
 
enum class  LabelsPosition { NoLabels , In , Out }
 
enum class  LabelsBackgroundType { Transparent , Color }
 
typedef AxisPrivate Private
 
- Public Types inherited from WorksheetElement
enum class  Orientation { Horizontal , Vertical }
 
enum class  WorksheetElementName { NameCartesianPlot = 1 }
 
enum class  HorizontalPosition { Left , Center , Right , Custom }
 
enum class  VerticalPosition { Top , Center , Bottom , Custom }
 
enum class  HorizontalAlignment { Left , Center , Right }
 
enum class  VerticalAlignment { Top , Center , Bottom }
 
- Public Types inherited from AbstractAspect
enum class  ChildIndexFlag { IncludeHidden = 0x01 , Recursive = 0x02 , Compress = 0x04 }
 Flags which control numbering scheme of children. More...
 

Signals

void orientationChanged (Orientation)
 
void positionChanged (Position)
 
void positionChanged (double)
 
void scaleChanged (Scale)
 
void startChanged (double)
 
void autoScaleChanged (bool)
 
void endChanged (double)
 
void zeroOffsetChanged (qreal)
 
void scalingFactorChanged (qreal)
 
void titleOffsetXChanged (qreal)
 
void titleOffsetYChanged (qreal)
 
void linePenChanged (const QPen &)
 
void lineOpacityChanged (qreal)
 
void arrowTypeChanged (Axis::ArrowType)
 
void arrowPositionChanged (Axis::ArrowPosition)
 
void arrowSizeChanged (qreal)
 
void majorTicksDirectionChanged (Axis::TicksDirection)
 
void majorTicksTypeChanged (Axis::TicksType)
 
void majorTicksNumberChanged (int)
 
void majorTicksSpacingChanged (qreal)
 
void majorTicksColumnChanged (const AbstractColumn *)
 
void majorTicksPenChanged (QPen)
 
void majorTicksLengthChanged (qreal)
 
void majorTicksOpacityChanged (qreal)
 
void minorTicksDirectionChanged (Axis::TicksDirection)
 
void minorTicksTypeChanged (Axis::TicksType)
 
void minorTicksNumberChanged (int)
 
void minorTicksIncrementChanged (qreal)
 
void minorTicksColumnChanged (const AbstractColumn *)
 
void minorTicksPenChanged (QPen)
 
void minorTicksLengthChanged (qreal)
 
void minorTicksOpacityChanged (qreal)
 
void labelsFormatChanged (Axis::LabelsFormat)
 
void labelsAutoPrecisionChanged (bool)
 
void labelsPrecisionChanged (int)
 
void labelsDateTimeFormatChanged (const QString &)
 
void labelsPositionChanged (Axis::LabelsPosition)
 
void labelsOffsetChanged (double)
 
void labelsRotationAngleChanged (qreal)
 
void labelsColorChanged (QColor)
 
void labelsFontChanged (QFont)
 
void labelsBackgroundTypeChanged (Axis::LabelsBackgroundType)
 
void labelsBackgroundColorChanged (QColor)
 
void labelsPrefixChanged (QString)
 
void labelsSuffixChanged (QString)
 
void labelsOpacityChanged (qreal)
 
void majorGridPenChanged (QPen)
 
void majorGridOpacityChanged (qreal)
 
void minorGridPenChanged (QPen)
 
void minorGridOpacityChanged (qreal)
 
void visibilityChanged (bool)
 
- Signals inherited from AbstractAspect
void aspectDescriptionAboutToChange (const AbstractAspect *)
 Emitted before the name, comment or caption spec is changed. More...
 
void aspectDescriptionChanged (const AbstractAspect *)
 Emitted after the name, comment or caption spec have changed. More...
 
void aspectAboutToBeAdded (const AbstractAspect *parent, const AbstractAspect *before, const AbstractAspect *child)
 Emitted before a new child is inserted. More...
 
void aspectAdded (const AbstractAspect *)
 Emitted after a new Aspect has been added to the tree. More...
 
void aspectAboutToBeRemoved (const AbstractAspect *)
 Emitted before an aspect is removed from its parent. More...
 
void aspectRemoved (const AbstractAspect *parent, const AbstractAspect *before, const AbstractAspect *child)
 Emitted from the parent after removing a child. More...
 
void aspectHiddenAboutToChange (const AbstractAspect *)
 Emitted before the hidden attribute is changed. More...
 
void aspectHiddenChanged (const AbstractAspect *)
 Emitted after the hidden attribute has changed. More...
 
void statusInfo (const QString &)
 Emitted whenever some aspect in the tree wants to give status information to the user. More...
 
void renameRequested ()
 
void selected (const AbstractAspect *)
 
void deselected (const AbstractAspect *)
 
void childAspectSelectedInView (const AbstractAspect *)
 
void childAspectDeselectedInView (const AbstractAspect *)
 

Public Member Functions

 Axis (const QString &, Orientation orientation=Orientation::Horizontal)
 
 ~Axis () override
 
void finalizeAdd () override
 
QIcon icon () const override
 
QMenu * createContextMenu () override
 Return a new context menu. More...
 
QGraphicsItem * graphicsItem () const override
 Return the graphics item representing this element. More...
 
void setZValue (qreal) override
 
void save (QXmlStreamWriter *) const override
 Save as XML. More...
 
bool load (XmlStreamReader *, bool preview) override
 Load from XML. More...
 
void loadThemeConfig (const KConfig &) override
 
void saveThemeConfig (const KConfig &) override
 
void setOffset (const double, const bool=true)
 
double offset () const
 
QString & majorTicksColumnPath () const
 
QString & minorTicksColumnPath () const
 
void setDefault (bool)
 
bool isDefault () const
 
void setVisible (bool) override
 Show/hide the element. More...
 
bool isVisible () const override
 Return whether the element is (at least) partially visible. More...
 
void setPrinting (bool) override
 Switches the printing mode on/off. More...
 
bool isHovered () const
 
void setSuppressRetransform (bool)
 
void retransform () override
 Tell the element to newly transform its graphics item into its coordinate system. More...
 
void retransformTickLabelStrings ()
 
void handleResize (double horizontalRatio, double verticalRatio, bool pageResize) override
 
- Public Member Functions inherited from WorksheetElement
 WorksheetElement (const QString &, AspectType)
 
 ~WorksheetElement () override
 
virtual bool isFullyVisible () const
 Return whether the element is fully visible (i.e., including all child elements). More...
 
QMenu * createContextMenu () override
 Return a new context menu. More...
 
void horizontalPaddingChanged (float)
 
void verticalPaddingChanged (float)
 
void rightPaddingChanged (double)
 
void bottomPaddingChanged (double)
 
void symmetricPaddingChanged (double)
 
void hovered ()
 
void unhovered ()
 
- Public Member Functions inherited from AbstractAspect
 AbstractAspect (const QString &name, AspectType type)
 
 ~AbstractAspect () override
 
QString name () const
 
QString comment () const
 
void setCreationTime (const QDateTime &)
 
QDateTime creationTime () const
 
virtual Projectproject ()
 Return the Project this Aspect belongs to, or 0 if it is currently not part of one. More...
 
virtual QString path () const
 Return the path that leads from the top-most Aspect (usually a Project) to me. More...
 
void setHidden (bool)
 Set "hidden" property, i.e. whether to exclude this aspect from being shown in the explorer. More...
 
bool hidden () const
 
void setIsLoading (bool)
 
bool isLoading () const
 
AspectType type () const
 
bool inherits (AspectType type) const
 
AbstractAspectparentAspect () const
 Return my parent Aspect or 0 if I currently don't have one. More...
 
AbstractAspectparent (AspectType type) const
 In the parent-child hierarchy, return the first parent of type. More...
 
void setParentAspect (AbstractAspect *)
 
Folderfolder ()
 Return the folder the Aspect is contained in or 0 if there is none. More...
 
bool isDescendantOf (AbstractAspect *other)
 Return whether the there is a path upwards to the given aspect. More...
 
void addChild (AbstractAspect *)
 Add the given Aspect to my list of children. More...
 
void addChildFast (AbstractAspect *)
 Add the given Aspect to my list of children without any checks and without putting this step onto the undo-stack. More...
 
QVector< AbstractAspect * > children (AspectType type, ChildIndexFlags flags={}) const
 
void insertChildBefore (AbstractAspect *child, AbstractAspect *before)
 Insert the given Aspect at a specific position in my list of children. More...
 
void insertChildBeforeFast (AbstractAspect *child, AbstractAspect *before)
 Insert the given Aspect at a specific position in my list of children.without any checks and without putting this step onto the undo-stack. More...
 
void reparent (AbstractAspect *newParent, int newIndex=-1)
 Move a child to another parent aspect and transfer ownership. More...
 
void removeChild (AbstractAspect *)
 Remove the given Aspect from my list of children. More...
 
void removeAllChildren ()
 Remove all child Aspects. More...
 
virtual QVector< AbstractAspect * > dependsOn () const
 
virtual bool isDraggable () const
 
virtual QVector< AspectTypedropableOn () const
 
virtual void processDropEvent (const QVector< quintptr > &)
 
template<class T >
T * ancestor () const
 Return the closest ancestor of class T (or NULL if none found). More...
 
template<class T >
QVector< T * > children (ChildIndexFlags flags={}) const
 
template<class T >
T * child (int index, ChildIndexFlags flags={}) const
 
template<class T >
T * child (const QString &name) const
 Get child by name and class. More...
 
template<class T >
int childCount (ChildIndexFlags flags={}) const
 Return the number of child Aspects inheriting from given class. More...
 
template<class T >
int indexOfChild (const AbstractAspect *child, ChildIndexFlags flags={}) const
 Return (0 based) index of child in the list of children inheriting from class T. More...
 
void setSelected (bool)
 
void setUndoAware (bool)
 
virtual QUndoStack * undoStack () const
 Return the undo stack of the Project, or 0 if this Aspect is not part of a Project. More...
 
void exec (QUndoCommand *)
 Execute the given command, pushing it on the undoStack() if available. More...
 
void exec (QUndoCommand *command, const char *preChangeSignal, const char *postChangeSignal, QGenericArgument val0=QGenericArgument(), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument())
 Execute command and arrange for signals to be sent before/after it is redone or undone. More...
 
void beginMacro (const QString &text)
 Begin an undo stack macro (series of commands) More...
 
void endMacro ()
 End the current undo stack macro. More...
 

Protected Member Functions

 Axis (const QString &, Orientation, AxisPrivate *)
 
- Protected Member Functions inherited from AbstractAspect
void info (const QString &text)
 Implementations should call this whenever status information should be given to the user. More...
 
bool readBasicAttributes (XmlStreamReader *)
 Load name and creation time from XML. More...
 
void writeBasicAttributes (QXmlStreamWriter *) const
 Save name and creation time to XML. More...
 
void writeCommentElement (QXmlStreamWriter *) const
 Save the comment to XML. More...
 
bool readCommentElement (XmlStreamReader *)
 Load comment from an XML element. More...
 

Protected Attributes

AxisPrivate *const d_ptr
 
TextLabelm_title
 
- Protected Attributes inherited from AbstractAspect
const AspectType m_type
 

Private Slots

void labelChanged ()
 
void retransformTicks ()
 
void majorTicksColumnAboutToBeRemoved (const AbstractAspect *)
 
void minorTicksColumnAboutToBeRemoved (const AbstractAspect *)
 
void orientationChangedSlot (QAction *)
 
void lineStyleChanged (QAction *)
 
void lineColorChanged (QAction *)
 
void visibilityChangedSlot ()
 

Private Member Functions

void init ()
 
void initActions ()
 
void initMenus ()
 

Private Attributes

QAction * visibilityAction {nullptr}
 
QAction * orientationHorizontalAction {nullptr}
 
QAction * orientationVerticalAction {nullptr}
 
QActionGroup * orientationActionGroup {nullptr}
 
QActionGroup * lineStyleActionGroup {nullptr}
 
QActionGroup * lineColorActionGroup {nullptr}
 
QMenu * orientationMenu {nullptr}
 
QMenu * lineMenu {nullptr}
 
QMenu * lineStyleMenu {nullptr}
 
QMenu * lineColorMenu {nullptr}
 

Additional Inherited Members

- Public Slots inherited from WorksheetElement
- Public Slots inherited from AbstractAspect
bool setName (const QString &, bool autoUnique=true)
 AbstractAspect::setName sets the name of the abstract aspect. More...
 
void setComment (const QString &)
 
void remove ()
 Remove me from my parent's list of children. More...
 
- Static Public Member Functions inherited from WorksheetElement
static QPainterPath shapeFromPath (const QPainterPath &, const QPen &)
 
- Protected Slots inherited from AbstractAspect
virtual void childSelected (const AbstractAspect *)
 
virtual void childDeselected (const AbstractAspect *)
 

Detailed Description

Axis for cartesian coordinate systems.

Definition at line 42 of file Axis.h.

Member Typedef Documentation

◆ Private

Definition at line 152 of file Axis.h.

Member Enumeration Documentation

◆ ArrowPosition

enum Axis::ArrowPosition
strong
Enumerator
Left 
Right 
Both 

Definition at line 58 of file Axis.h.

◆ ArrowType

enum Axis::ArrowType
strong
Enumerator
NoArrow 
SimpleSmall 
SimpleBig 
FilledSmall 
FilledBig 
SemiFilledSmall 
SemiFilledBig 

Definition at line 57 of file Axis.h.

◆ LabelsBackgroundType

Enumerator
Transparent 
Color 

Definition at line 61 of file Axis.h.

◆ LabelsFormat

enum Axis::LabelsFormat
strong
Enumerator
Decimal 
ScientificE 
Powers10 
Powers2 
PowersE 
MultipliesPi 

Definition at line 47 of file Axis.h.

◆ LabelsPosition

enum Axis::LabelsPosition
strong
Enumerator
NoLabels 
In 
Out 

Definition at line 60 of file Axis.h.

◆ Position

enum Axis::Position
strong
Enumerator
Top 
Bottom 
Left 
Right 
Centered 
Custom 

Definition at line 46 of file Axis.h.

◆ Scale

enum Axis::Scale
strong
Enumerator
Linear 
Log10 
Log2 
Ln 
Sqrt 
X2 

Definition at line 59 of file Axis.h.

◆ TicksFlags

Enumerator
noTicks 
ticksIn 
ticksOut 
ticksBoth 

Definition at line 48 of file Axis.h.

◆ TicksType

enum Axis::TicksType
strong
Enumerator
TotalNumber 
Spacing 
CustomColumn 
CustomValues 

Definition at line 56 of file Axis.h.

Constructor & Destructor Documentation

◆ Axis() [1/2]

Axis::Axis ( const QString &  name,
Orientation  orientation = Orientation::Horizontal 
)
explicit

Definition at line 117 of file Axis.cpp.

References d_ptr, init(), and AxisPrivate::orientation.

◆ ~Axis()

Axis::~Axis ( )
override

Definition at line 325 of file Axis.cpp.

References lineMenu, and orientationMenu.

◆ Axis() [2/2]

Axis::Axis ( const QString &  name,
Orientation  orientation,
AxisPrivate dd 
)
protected

Definition at line 123 of file Axis.cpp.

References d_ptr, init(), and AxisPrivate::orientation.

Member Function Documentation

◆ arrowPositionChanged

void Axis::arrowPositionChanged ( Axis::ArrowPosition  )
signal

Referenced by AxisDock::setAxes().

◆ arrowSizeChanged

void Axis::arrowSizeChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ arrowTypeChanged

void Axis::arrowTypeChanged ( Axis::ArrowType  )
signal

Referenced by AxisDock::setAxes().

◆ autoScaleChanged

void Axis::autoScaleChanged ( bool  )
signal

Referenced by AxisDock::setAxes().

◆ createContextMenu()

◆ endChanged

void Axis::endChanged ( double  )
signal

Referenced by AxisDock::setAxes().

◆ finalizeAdd()

void Axis::finalizeAdd ( )
overridevirtual

Reimplemented from AbstractAspect.

Definition at line 129 of file Axis.cpp.

References AbstractAspect::d, and AbstractAspect::parentAspect().

◆ graphicsItem()

QGraphicsItem * Axis::graphicsItem ( ) const
overridevirtual

Return the graphics item representing this element.

Implements WorksheetElement.

Definition at line 337 of file Axis.cpp.

References d_ptr.

◆ handleResize()

void Axis::handleResize ( double  horizontalRatio,
double  verticalRatio,
bool  pageResize 
)
overridevirtual

Implements WorksheetElement.

Definition at line 367 of file Axis.cpp.

References AbstractAspect::d.

◆ icon()

QIcon Axis::icon ( ) const
overridevirtual

Returns an icon to be used in the project explorer.

Reimplemented from AbstractAspect.

Definition at line 314 of file Axis.cpp.

References AbstractAspect::d, and WorksheetElement::Horizontal.

◆ init()

◆ initActions()

void Axis::initActions ( )
private

For the most frequently edited properties, create Actions and ActionGroups for the context menu. For some ActionGroups the actual actions are created in GuiTool,

Definition at line 228 of file Axis.cpp.

References i18n, lineColorActionGroup, lineColorChanged(), lineStyleActionGroup, lineStyleChanged(), orientationActionGroup, orientationChangedSlot(), orientationHorizontalAction, orientationVerticalAction, visibilityAction, and visibilityChangedSlot().

Referenced by initMenus().

◆ initMenus()

◆ isDefault()

bool Axis::isDefault ( ) const

Definition at line 491 of file Axis.cpp.

References AbstractAspect::d.

◆ isHovered()

bool Axis::isHovered ( ) const

Definition at line 501 of file Axis.cpp.

References AbstractAspect::d.

◆ isVisible()

bool Axis::isVisible ( ) const
overridevirtual

Return whether the element is (at least) partially visible.

Implements WorksheetElement.

Definition at line 481 of file Axis.cpp.

References AbstractAspect::d.

Referenced by createContextMenu(), and AxisDock::load().

◆ labelChanged

void Axis::labelChanged ( )
privateslot

Definition at line 890 of file Axis.cpp.

References AbstractAspect::d.

Referenced by init().

◆ labelsAutoPrecisionChanged

void Axis::labelsAutoPrecisionChanged ( bool  )
signal

Referenced by AxisDock::setAxes().

◆ labelsBackgroundColorChanged

void Axis::labelsBackgroundColorChanged ( QColor  )
signal

Referenced by AxisDock::setAxes().

◆ labelsBackgroundTypeChanged

void Axis::labelsBackgroundTypeChanged ( Axis::LabelsBackgroundType  )
signal

Referenced by AxisDock::setAxes().

◆ labelsColorChanged

void Axis::labelsColorChanged ( QColor  )
signal

Referenced by AxisDock::setAxes().

◆ labelsDateTimeFormatChanged

void Axis::labelsDateTimeFormatChanged ( const QString &  )
signal

Referenced by AxisDock::setAxes().

◆ labelsFontChanged

void Axis::labelsFontChanged ( QFont  )
signal

Referenced by AxisDock::setAxes().

◆ labelsFormatChanged

void Axis::labelsFormatChanged ( Axis::LabelsFormat  )
signal

◆ labelsOffsetChanged

void Axis::labelsOffsetChanged ( double  )
signal

Referenced by AxisDock::setAxes().

◆ labelsOpacityChanged

void Axis::labelsOpacityChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ labelsPositionChanged

void Axis::labelsPositionChanged ( Axis::LabelsPosition  )
signal

Referenced by AxisDock::setAxes().

◆ labelsPrecisionChanged

void Axis::labelsPrecisionChanged ( int  )
signal

◆ labelsPrefixChanged

void Axis::labelsPrefixChanged ( QString  )
signal

Referenced by AxisDock::setAxes().

◆ labelsRotationAngleChanged

void Axis::labelsRotationAngleChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ labelsSuffixChanged

void Axis::labelsSuffixChanged ( QString  )
signal

Referenced by AxisDock::setAxes().

◆ lineColorChanged

void Axis::lineColorChanged ( QAction *  action)
privateslot

◆ lineOpacityChanged

void Axis::lineOpacityChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ linePenChanged

void Axis::linePenChanged ( const QPen &  )
signal

Referenced by AxisDock::setAxes().

◆ lineStyleChanged

void Axis::lineStyleChanged ( QAction *  action)
privateslot

◆ load()

◆ loadThemeConfig()

void Axis::loadThemeConfig ( const KConfig &  config)
overridevirtual

◆ majorGridOpacityChanged

void Axis::majorGridOpacityChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ majorGridPenChanged

void Axis::majorGridPenChanged ( QPen  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksColumnAboutToBeRemoved

void Axis::majorTicksColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 900 of file Axis.cpp.

References AbstractAspect::d.

◆ majorTicksColumnChanged

void Axis::majorTicksColumnChanged ( const AbstractColumn )
signal

◆ majorTicksColumnPath()

QString & Axis::majorTicksColumnPath ( ) const

Definition at line 414 of file Axis.cpp.

References majorTicksColumnPath().

Referenced by majorTicksColumnPath().

◆ majorTicksDirectionChanged

void Axis::majorTicksDirectionChanged ( Axis::TicksDirection  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksLengthChanged

void Axis::majorTicksLengthChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksNumberChanged

void Axis::majorTicksNumberChanged ( int  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksOpacityChanged

void Axis::majorTicksOpacityChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksPenChanged

void Axis::majorTicksPenChanged ( QPen  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksSpacingChanged

void Axis::majorTicksSpacingChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ majorTicksTypeChanged

void Axis::majorTicksTypeChanged ( Axis::TicksType  )
signal

Referenced by AxisDock::setAxes().

◆ minorGridOpacityChanged

void Axis::minorGridOpacityChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ minorGridPenChanged

void Axis::minorGridPenChanged ( QPen  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksColumnAboutToBeRemoved

void Axis::minorTicksColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 908 of file Axis.cpp.

References AbstractAspect::d.

◆ minorTicksColumnChanged

void Axis::minorTicksColumnChanged ( const AbstractColumn )
signal

◆ minorTicksColumnPath()

QString & Axis::minorTicksColumnPath ( ) const

Definition at line 424 of file Axis.cpp.

References minorTicksColumnPath().

Referenced by minorTicksColumnPath().

◆ minorTicksDirectionChanged

void Axis::minorTicksDirectionChanged ( Axis::TicksDirection  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksIncrementChanged

void Axis::minorTicksIncrementChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksLengthChanged

void Axis::minorTicksLengthChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksNumberChanged

void Axis::minorTicksNumberChanged ( int  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksOpacityChanged

void Axis::minorTicksOpacityChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksPenChanged

void Axis::minorTicksPenChanged ( QPen  )
signal

Referenced by AxisDock::setAxes().

◆ minorTicksTypeChanged

void Axis::minorTicksTypeChanged ( Axis::TicksType  )
signal

Referenced by AxisDock::setAxes().

◆ offset()

double Axis::offset ( ) const

◆ orientationChanged

void Axis::orientationChanged ( Orientation  )
signal

Referenced by AxisDock::setAxes().

◆ orientationChangedSlot

void Axis::orientationChangedSlot ( QAction *  action)
privateslot

◆ positionChanged [1/2]

void Axis::positionChanged ( double  )
signal

◆ positionChanged [2/2]

void Axis::positionChanged ( Position  )
signal

Referenced by AxisDock::setAxes(), and setOffset().

◆ retransform()

void Axis::retransform ( )
overridevirtual

Tell the element to newly transform its graphics item into its coordinate system.

This method must not change the undo-aware data of the element, only the graphics item which represents the item is to be updated.

Implements WorksheetElement.

Definition at line 352 of file Axis.cpp.

References AbstractAspect::d.

◆ retransformTickLabelStrings()

void Axis::retransformTickLabelStrings ( )

Definition at line 357 of file Axis.cpp.

References AbstractAspect::d.

◆ retransformTicks

void Axis::retransformTicks ( )
privateslot

Definition at line 895 of file Axis.cpp.

References AbstractAspect::d.

◆ save()

void Axis::save ( QXmlStreamWriter *  writer) const
overridevirtual

◆ saveThemeConfig()

void Axis::saveThemeConfig ( const KConfig &  config)
overridevirtual

Reimplemented from WorksheetElement.

Definition at line 2540 of file Axis.cpp.

References AbstractAspect::d.

◆ scaleChanged

void Axis::scaleChanged ( Scale  )
signal

Referenced by AxisDock::setAxes().

◆ scalingFactorChanged

void Axis::scalingFactorChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

◆ setDefault()

void Axis::setDefault ( bool  value)

Definition at line 486 of file Axis.cpp.

References AbstractAspect::d.

Referenced by CartesianPlot::setType().

◆ setOffset()

void Axis::setOffset ( const double  offset,
const bool  undo = true 
)

Definition at line 528 of file Axis.cpp.

References AbstractAspect::d, AbstractAspect::exec(), offset(), and positionChanged().

Referenced by CartesianPlot::setType().

◆ setPrinting()

void Axis::setPrinting ( bool  on)
overridevirtual

Switches the printing mode on/off.

Implements WorksheetElement.

Definition at line 496 of file Axis.cpp.

References AbstractAspect::d.

◆ setSuppressRetransform()

void Axis::setSuppressRetransform ( bool  value)

Definition at line 362 of file Axis.cpp.

References AbstractAspect::d.

Referenced by OriginProjectParser::loadWorksheet(), and CartesianPlot::setType().

◆ setVisible()

void Axis::setVisible ( bool  on)
overridevirtual

Show/hide the element.

Implements WorksheetElement.

Definition at line 476 of file Axis.cpp.

References AbstractAspect::d, and AbstractAspect::exec().

Referenced by visibilityChangedSlot().

◆ setZValue()

void Axis::setZValue ( qreal  )
overridevirtual

overrides the implementation in WorksheetElement and sets the z-value to the maximal possible, axes are drawn on top of all other object in the plot.

Reimplemented from WorksheetElement.

Definition at line 345 of file Axis.cpp.

References AbstractAspect::d.

◆ startChanged

void Axis::startChanged ( double  )
signal

Referenced by AxisDock::setAxes().

◆ titleOffsetXChanged

void Axis::titleOffsetXChanged ( qreal  )
signal

Referenced by LabelWidget::setAxes().

◆ titleOffsetYChanged

void Axis::titleOffsetYChanged ( qreal  )
signal

Referenced by LabelWidget::setAxes().

◆ visibilityChanged

void Axis::visibilityChanged ( bool  )
signal

◆ visibilityChangedSlot

void Axis::visibilityChangedSlot ( )
privateslot

Definition at line 940 of file Axis.cpp.

References AbstractAspect::d, and setVisible().

Referenced by initActions().

◆ zeroOffsetChanged

void Axis::zeroOffsetChanged ( qreal  )
signal

Referenced by AxisDock::setAxes().

Member Data Documentation

◆ d_ptr

AxisPrivate* const Axis::d_ptr
protected

Definition at line 155 of file Axis.h.

Referenced by Axis(), and graphicsItem().

◆ lineColorActionGroup

QActionGroup* Axis::lineColorActionGroup {nullptr}
private

Definition at line 171 of file Axis.h.

Referenced by createContextMenu(), initActions(), initMenus(), and lineColorChanged().

◆ lineColorMenu

QMenu* Axis::lineColorMenu {nullptr}
private

Definition at line 176 of file Axis.h.

Referenced by initMenus().

◆ lineMenu

QMenu* Axis::lineMenu {nullptr}
private

Definition at line 174 of file Axis.h.

Referenced by createContextMenu(), initMenus(), and ~Axis().

◆ lineStyleActionGroup

QActionGroup* Axis::lineStyleActionGroup {nullptr}
private

Definition at line 170 of file Axis.h.

Referenced by createContextMenu(), initActions(), and lineStyleChanged().

◆ lineStyleMenu

QMenu* Axis::lineStyleMenu {nullptr}
private

Definition at line 175 of file Axis.h.

Referenced by createContextMenu(), and initMenus().

◆ m_title

TextLabel* Axis::m_title
protected

Definition at line 157 of file Axis.h.

◆ orientationActionGroup

QActionGroup* Axis::orientationActionGroup {nullptr}
private

Definition at line 169 of file Axis.h.

Referenced by initActions().

◆ orientationHorizontalAction

QAction* Axis::orientationHorizontalAction {nullptr}
private

Definition at line 166 of file Axis.h.

Referenced by createContextMenu(), initActions(), initMenus(), and orientationChangedSlot().

◆ orientationMenu

QMenu* Axis::orientationMenu {nullptr}
private

Definition at line 173 of file Axis.h.

Referenced by createContextMenu(), initMenus(), and ~Axis().

◆ orientationVerticalAction

QAction* Axis::orientationVerticalAction {nullptr}
private

Definition at line 167 of file Axis.h.

Referenced by createContextMenu(), initActions(), and initMenus().

◆ visibilityAction

QAction* Axis::visibilityAction {nullptr}
private

Definition at line 165 of file Axis.h.

Referenced by createContextMenu(), and initActions().


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