|
Canorus
0.7
|
#include <drawablefunctionmarkcontext.h>

Public Types | |
| enum | CAFunctionMarkLine { Upper, Middle, Lower } |
Public Member Functions | |
| CADrawableFunctionMarkContext (CAFunctionMarkContext *c, double x, double y, int numberOfLines=2) | |
| ~CADrawableFunctionMarkContext () | |
| void | draw (QPainter *p, const CADrawSettings s) |
| CADrawableFunctionMarkContext * | clone () |
| void | setNumberOfLines (int number) |
| int | numberOfLines () |
| double | yPosLine (CAFunctionMarkLine part) |
| void | nextLine () |
| int | currentLineIdx () |
Private Attributes | |
| int | _numberOfLines |
| int | _currentLineIdx |
| CADrawableFunctionMarkContext::CADrawableFunctionMarkContext | ( | CAFunctionMarkContext * | context, |
| double | x, | ||
| double | y, | ||
| int | numberOfLines = 2 |
||
| ) |
Copyright (c) 2006, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
References _currentLineIdx, _numberOfLines, CADrawableContext::DrawableFunctionMarkContext, numberOfLines(), CADrawableContext::setDrawableContextType(), CADrawable::setHeight(), and CADrawable::setWidth().
Referenced by clone().


| CADrawableFunctionMarkContext * CADrawableFunctionMarkContext::clone | ( | ) | [virtual] |
Implements CADrawableContext.
References CADrawableContext::_context, CADrawableFunctionMarkContext(), CADrawable::xPos(), and CADrawable::yPos().

| int CADrawableFunctionMarkContext::currentLineIdx | ( | ) | [inline] |
References _currentLineIdx.
| void CADrawableFunctionMarkContext::draw | ( | QPainter * | p, |
| const CADrawSettings | s | ||
| ) | [virtual] |
Implements CADrawable.
References CADrawable::height(), CADrawSettings::w, CADrawSettings::y, and CADrawSettings::z.

| void CADrawableFunctionMarkContext::nextLine | ( | ) | [inline] |
References _currentLineIdx, and _numberOfLines.
| int CADrawableFunctionMarkContext::numberOfLines | ( | ) | [inline] |
References _numberOfLines.
Referenced by CADrawableFunctionMarkContext().

| void CADrawableFunctionMarkContext::setNumberOfLines | ( | int | number | ) | [inline] |
References _numberOfLines.
| double CADrawableFunctionMarkContext::yPosLine | ( | CAFunctionMarkLine | part | ) |
References _currentLineIdx, Lower, Middle, and CADrawable::yPos().

int CADrawableFunctionMarkContext::_currentLineIdx [private] |
Referenced by CADrawableFunctionMarkContext(), currentLineIdx(), nextLine(), and yPosLine().
int CADrawableFunctionMarkContext::_numberOfLines [private] |
Referenced by CADrawableFunctionMarkContext(), nextLine(), numberOfLines(), and setNumberOfLines().
1.8.0