Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
CADrawableFunctionMarkContext Class Reference

#include <drawablefunctionmarkcontext.h>

Inheritance diagram for CADrawableFunctionMarkContext:
Inheritance graph
[legend]

List of all members.

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)
CADrawableFunctionMarkContextclone ()
void setNumberOfLines (int number)
int numberOfLines ()
double yPosLine (CAFunctionMarkLine part)
void nextLine ()
int currentLineIdx ()

Private Attributes

int _numberOfLines
int _currentLineIdx

Member Enumeration Documentation

Enumerator:
Upper 
Middle 
Lower 

Constructor & Destructor Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

Implements CADrawableContext.

References CADrawableContext::_context, CADrawableFunctionMarkContext(), CADrawable::xPos(), and CADrawable::yPos().

Here is the call graph for this function:

References _currentLineIdx.

void CADrawableFunctionMarkContext::draw ( QPainter *  p,
const CADrawSettings  s 
) [virtual]

Implements CADrawable.

References CADrawable::height(), CADrawSettings::w, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

References _currentLineIdx, and _numberOfLines.

References _numberOfLines.

Referenced by CADrawableFunctionMarkContext().

Here is the caller graph for this function:

void CADrawableFunctionMarkContext::setNumberOfLines ( int  number) [inline]

References _numberOfLines.

References _currentLineIdx, Lower, Middle, and CADrawable::yPos().

Here is the call graph for this function:


Member Data Documentation


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