Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LangmuirView::CornerAxis Class Reference

A class to represent an xyz axis that doesnt change size/position. More...

#include <corneraxis.h>

Public Types

enum  Location { LowerLeft, UpperLeft, LowerRight, UpperRight }
 the location of the axis More...
 

Public Slots

void setLocation (Location location)
 set the axis location More...
 
void setShift (int shift)
 set the axis shift More...
 
void setSize (int size)
 set the axis size More...
 
virtual void makeConnections ()
 make signal/slot connections More...
 
- Public Slots inherited from LangmuirView::Axis
void setXColor (QColor color)
 set the color of the x-axis More...
 
void setYColor (QColor color)
 set the color of the x-axis More...
 
void setZColor (QColor color)
 set the color of the x-axis More...
 
void setRadius (double value)
 set the radius of axes More...
 
void setLength (double value)
 set the length of axes More...
 
virtual void makeConnections ()
 make signal/slot connections More...
 
- Public Slots inherited from LangmuirView::SceneObject
void toggleVisible ()
 toggle visibility More...
 
void setVisible (bool draw=true)
 set the visibility More...
 
virtual void makeConnections ()
 make signal/slot connections More...
 

Signals

void locationChanged (Location)
 signal that the axis location has changed More...
 
void shiftChanged (int)
 signal that the axis shift has changed More...
 
void sizeChanged (int)
 signal that the axis size has changed More...
 
- Signals inherited from LangmuirView::Axis
void xColorChanged (QColor color)
 signal that the color of x-axis has changed More...
 
void yColorChanged (QColor color)
 signal that the color of y-axis has changed More...
 
void zColorChanged (QColor color)
 signal that the color of z-axis has changed More...
 
void radiusChanged (double value)
 signal that the axes radius has changed More...
 
void lengthChanged (double value)
 signal that the axes length has changed More...
 
- Signals inherited from LangmuirView::SceneObject
void visibleChanged (bool drawn)
 signal that the visibility has changed More...
 

Public Member Functions

 CornerAxis (LangmuirViewer &viewer, QObject *parent=0)
 create the CornerAxis More...
 
Location getLocation () const
 get the location of the corner axis More...
 
int getSize () const
 get the size of the viewport More...
 
int getShift () const
 get the shift of the viewport More...
 
- Public Member Functions inherited from LangmuirView::Axis
 Axis (LangmuirViewer &viewer, QObject *parent=0)
 create the Axis More...
 
const QColor & getXColor () const
 get color of x-axis More...
 
const QColor & getYColor () const
 get color of y-axis More...
 
const QColor & getZColor () const
 get color of z-axis More...
 
double getLength () const
 get axis length More...
 
double getRadius () const
 get axis radius More...
 
- Public Member Functions inherited from LangmuirView::SceneObject
 SceneObject (LangmuirViewer &viewer, QObject *parent=0)
 create the SceneObject More...
 
bool isVisible ()
 true if object is drawn More...
 
void render ()
 calls OpenGL drawing commands. More...
 

Protected Member Functions

virtual void init ()
 initialize object More...
 
virtual void preDraw ()
 perform OpenGL drawing operations before draw() More...
 
virtual void postDraw ()
 perform OpenGL drawing operations after draw() More...
 
- Protected Member Functions inherited from LangmuirView::Axis
virtual void draw ()
 perform OpenGL drawing operations More...
 

Private Attributes

Location m_location
 location of axis More...
 
int m_scissorBox [4]
 storage for scissor box More...
 
int m_viewPort [4]
 storage for viewport More...
 
int m_shift
 shift of axis from edge More...
 
int m_size
 size of altered viewport More...
 

Additional Inherited Members

- Protected Attributes inherited from LangmuirView::Axis
double m_radius
 axes radius More...
 
double m_length
 axes length More...
 
QColor m_xcolor
 color of x-axis More...
 
QColor m_ycolor
 color of y-axis More...
 
QColor m_zcolor
 color of z-axis More...
 
- Protected Attributes inherited from LangmuirView::SceneObject
LangmuirViewerm_viewer
 reference to OpenGL widget More...
 
bool visible_
 visibility More...
 

Detailed Description

A class to represent an xyz axis that doesnt change size/position.

Member Enumeration Documentation

the location of the axis

Enumerator
LowerLeft 
UpperLeft 

draw axis in lower left

LowerRight 

draw axis in upper left

UpperRight 

draw axis in lower right

draw axis in upper right

Constructor & Destructor Documentation

LangmuirView::CornerAxis::CornerAxis ( LangmuirViewer viewer,
QObject *  parent = 0 
)
explicit

create the CornerAxis

Parameters
viewerthe viewer
parentQObject this belongs to

Member Function Documentation

Location LangmuirView::CornerAxis::getLocation ( ) const

get the location of the corner axis

int LangmuirView::CornerAxis::getShift ( ) const

get the shift of the viewport

int LangmuirView::CornerAxis::getSize ( ) const

get the size of the viewport

virtual void LangmuirView::CornerAxis::init ( )
protectedvirtual

initialize object

Reimplemented from LangmuirView::Axis.

void LangmuirView::CornerAxis::locationChanged ( Location  )
signal

signal that the axis location has changed

virtual void LangmuirView::CornerAxis::makeConnections ( )
virtualslot

make signal/slot connections

virtual void LangmuirView::CornerAxis::postDraw ( )
protectedvirtual

perform OpenGL drawing operations after draw()

Reimplemented from LangmuirView::SceneObject.

virtual void LangmuirView::CornerAxis::preDraw ( )
protectedvirtual

perform OpenGL drawing operations before draw()

Reimplemented from LangmuirView::SceneObject.

void LangmuirView::CornerAxis::setLocation ( Location  location)
slot

set the axis location

Parameters
locationlocation to set
void LangmuirView::CornerAxis::setShift ( int  shift)
slot

set the axis shift

Parameters
shiftshift to set
void LangmuirView::CornerAxis::setSize ( int  size)
slot

set the axis size

Parameters
sizesize to set
void LangmuirView::CornerAxis::shiftChanged ( int  )
signal

signal that the axis shift has changed

void LangmuirView::CornerAxis::sizeChanged ( int  )
signal

signal that the axis size has changed

Member Data Documentation

Location LangmuirView::CornerAxis::m_location
private

location of axis

int LangmuirView::CornerAxis::m_scissorBox[4]
private

storage for scissor box

int LangmuirView::CornerAxis::m_shift
private

shift of axis from edge

int LangmuirView::CornerAxis::m_size
private

size of altered viewport

int LangmuirView::CornerAxis::m_viewPort[4]
private

storage for viewport


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