Simulacrum  1.2
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Simulacrum::SViewPort Class Reference

#include <viewPort.h>

Inheritance diagram for Simulacrum::SViewPort:
Inheritance graph
Collaboration diagram for Simulacrum::SViewPort:
Collaboration graph

Public Slots

void setEdgeWidget (QWidget *, int position=0, bool restyle=true)
 
void updateWidgets ()
 
void showHUD (bool)
 
void setHUDText (int position, const QString &text)
 
void showMessage (const QString &="")
 
void setWaiting (bool=true)
 
void setProgress (int)
 
void showSImage (SSpace &)
 
virtual void sconnect_end (SConnectable &)
 
virtual void sconnect (SQConnectable &)
 
virtual void sconnect (SConnectable &)
 
virtual void sdisconnect (SQConnectable &)
 
virtual void sdisconnect (SConnectable *)
 
virtual void sconfigure (const QString &)
 
virtual void refresh (bool)
 
void clear ()
 
virtual void setScaleFit (bool)
 
void setScaleZoom (float)
 
void setName (const QString &)
 
void setEmitMessage (bool)
 

Signals

void leftClicked (SViewPort &, int x, int y)
 
void doubleClicked (SViewPort &, int x, int y)
 
void middleClicked (SViewPort &, int x, int y)
 
void rightClicked (SViewPort &, int x, int y)
 
void buttonReleased (SViewPort &, int x, int y)
 
void keyPressed (SViewPort &, int key)
 
void keyReleased (SViewPort &, int key)
 
void dragged (SViewPort &, int x, int y)
 
void wheelUp (SViewPort &, int x, int y)
 
void wheelDown (SViewPort &, int x, int y)
 
void activated (SViewPort &)
 
void deActivated (SViewPort &)
 
void active (bool)
 
void progress (int)
 
void updated (bool)
 
void resized (SViewPort &)
 
void message (QString)
 

Public Member Functions

 SViewPort (QWidget *parent=0)
 
virtual ~SViewPort ()
 
bool isActive ()
 
bool isHUDVisible ()
 
void setActive (bool)
 
SSpacesourceSSpace ()
 
SSpaceendSourceSSpace ()
 
SSpacepenumSourceSSpace ()
 
SRenderSurfacerenderSurface ()
 
QWidget & renderSurfaceWidget ()
 
SVector coordToSourceSSpace (const SCoordinate &reqcoord)
 
SVector coordToEndSourceSSpace (const SCoordinate &reqcoord)
 
SVector sourceSSpaceToCoord (const SVector &sspacecoord)
 
void centerOnSourceCoord (const SCoordinate &reqcoord, bool forcecenter=false)
 
bool endSourceSSpaceToCoord (const SVector &sourcecoord, SVector &result)
 
const QString & name ()
 
bool emitMessage ()
 
SDynamicLayoutlayout (bool recurse=true)
 
QColor activeColor ()
 
bool scaleFit ()
 
float scaleZoom ()
 
- Public Member Functions inherited from Simulacrum::SQConnectable
 SQConnectable ()
 
virtual ~SQConnectable ()
 
virtual void refresh (bool)
 
virtual void sconnect (SQConnectable &)
 
virtual void sdisconnect (SQConnectable &)
 
virtual void sconnect (SConnectable &)
 
virtual void sconnect (SConnectable &, bool)
 
virtual void sdisconnect (SConnectable *)
 
virtual void sconfigure (const QString &)
 
virtual void setWaiting (bool)
 
virtual void setProgress (int)
 
virtual void ssignal (unsigned, void *)
 
virtual void acceptCoreSignals ()
 
virtual SConnectableWrappercore ()
 
virtual void active (bool)=0
 
virtual void progress (int)=0
 
virtual void updated (bool)=0
 

Protected Member Functions

void resizeEvent (QResizeEvent *)
 
void paintEvent (QPaintEvent *)
 
void mousePressEvent (QMouseEvent *)
 
void mouseMoveEvent (QMouseEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mouseReleaseEvent (QMouseEvent *)
 
void keyPressEvent (QKeyEvent *)
 
void keyReleaseEvent (QKeyEvent *)
 
void focusInEvent (QFocusEvent *)
 
void focusOutEvent (QFocusEvent *)
 
void wheelEvent (QWheelEvent *)
 
void dragEnterEvent (QDragEnterEvent *)
 
void dropEvent (QDropEvent *)
 
void showEvent (QShowEvent *)
 

Protected Attributes

SRenderSurfaceRenderSurface
 
QWidget * RenderSurfaceWidget
 
SSpaceSourceImage
 
SViewPortHUDHUD
 
QColor BGColor
 
BusyWidgetBusyDrawer
 
SSpace initIMG
 
QWidget * TW
 
QWidget * BW
 
QWidget * LW
 
QWidget * RW
 
QTimer * ClearMessageTimer
 

Constructor & Destructor Documentation

◆ SViewPort()

SViewPort::SViewPort ( QWidget *  parent = 0)

◆ ~SViewPort()

SViewPort::~SViewPort ( )
virtual

Member Function Documentation

◆ activated

void Simulacrum::SViewPort::activated ( SViewPort )
signal

◆ active

void Simulacrum::SViewPort::active ( bool  )
signal

◆ activeColor()

QColor SViewPort::activeColor ( )

◆ buttonReleased

void Simulacrum::SViewPort::buttonReleased ( SViewPort ,
int  x,
int  y 
)
signal

◆ centerOnSourceCoord()

void SViewPort::centerOnSourceCoord ( const SCoordinate reqcoord,
bool  forcecenter = false 
)

◆ clear

void SViewPort::clear ( )
slot

◆ coordToEndSourceSSpace()

SVector SViewPort::coordToEndSourceSSpace ( const SCoordinate reqcoord)

◆ coordToSourceSSpace()

SVector SViewPort::coordToSourceSSpace ( const SCoordinate reqcoord)

◆ deActivated

void Simulacrum::SViewPort::deActivated ( SViewPort )
signal

◆ doubleClicked

void Simulacrum::SViewPort::doubleClicked ( SViewPort ,
int  x,
int  y 
)
signal

◆ dragEnterEvent()

void SViewPort::dragEnterEvent ( QDragEnterEvent *  dragevent)
protected

◆ dragged

void Simulacrum::SViewPort::dragged ( SViewPort ,
int  x,
int  y 
)
signal

◆ dropEvent()

void SViewPort::dropEvent ( QDropEvent *  dropevent)
protected

◆ emitMessage()

bool SViewPort::emitMessage ( )

◆ endSourceSSpace()

SSpace * SViewPort::endSourceSSpace ( )

◆ endSourceSSpaceToCoord()

bool SViewPort::endSourceSSpaceToCoord ( const SVector sourcecoord,
SVector result 
)

◆ focusInEvent()

void SViewPort::focusInEvent ( QFocusEvent *  event)
protected

◆ focusOutEvent()

void SViewPort::focusOutEvent ( QFocusEvent *  event)
protected

◆ isActive()

bool SViewPort::isActive ( )

◆ isHUDVisible()

bool SViewPort::isHUDVisible ( )

◆ keyPressed

void Simulacrum::SViewPort::keyPressed ( SViewPort ,
int  key 
)
signal

◆ keyPressEvent()

void SViewPort::keyPressEvent ( QKeyEvent *  event)
protected

◆ keyReleased

void Simulacrum::SViewPort::keyReleased ( SViewPort ,
int  key 
)
signal

◆ keyReleaseEvent()

void SViewPort::keyReleaseEvent ( QKeyEvent *  event)
protected

◆ layout()

SDynamicLayout * SViewPort::layout ( bool  recurse = true)

◆ leftClicked

void Simulacrum::SViewPort::leftClicked ( SViewPort ,
int  x,
int  y 
)
signal

◆ message

void Simulacrum::SViewPort::message ( QString  )
signal

◆ middleClicked

void Simulacrum::SViewPort::middleClicked ( SViewPort ,
int  x,
int  y 
)
signal

◆ mouseDoubleClickEvent()

void SViewPort::mouseDoubleClickEvent ( QMouseEvent *  event)
protected

◆ mouseMoveEvent()

void SViewPort::mouseMoveEvent ( QMouseEvent *  event)
protected

◆ mousePressEvent()

void SViewPort::mousePressEvent ( QMouseEvent *  event)
protected

◆ mouseReleaseEvent()

void SViewPort::mouseReleaseEvent ( QMouseEvent *  event)
protected

◆ name()

const QString & SViewPort::name ( )

◆ paintEvent()

void SViewPort::paintEvent ( QPaintEvent *  pevent)
protected

◆ penumSourceSSpace()

SSpace * SViewPort::penumSourceSSpace ( )

◆ progress

void Simulacrum::SViewPort::progress ( int  )
signal

◆ refresh

void SViewPort::refresh ( bool  deep)
virtualslot

◆ renderSurface()

SRenderSurface & SViewPort::renderSurface ( )

◆ renderSurfaceWidget()

QWidget & SViewPort::renderSurfaceWidget ( )

◆ resized

void Simulacrum::SViewPort::resized ( SViewPort )
signal

◆ resizeEvent()

void SViewPort::resizeEvent ( QResizeEvent *  event)
protected

◆ rightClicked

void Simulacrum::SViewPort::rightClicked ( SViewPort ,
int  x,
int  y 
)
signal

◆ scaleFit()

bool SViewPort::scaleFit ( )

◆ scaleZoom()

float SViewPort::scaleZoom ( )

◆ sconfigure

void SViewPort::sconfigure ( const QString &  confstrp)
virtualslot

◆ sconnect [1/2]

void SViewPort::sconnect ( SConnectable targ)
virtualslot

◆ sconnect [2/2]

void SViewPort::sconnect ( SQConnectable targ)
virtualslot

◆ sconnect_end

void SViewPort::sconnect_end ( SConnectable targspace)
virtualslot

◆ sdisconnect [1/2]

void SViewPort::sdisconnect ( SConnectable targ)
virtualslot

◆ sdisconnect [2/2]

void SViewPort::sdisconnect ( SQConnectable targ)
virtualslot

◆ setActive()

void SViewPort::setActive ( bool  nac)

◆ setEdgeWidget

void SViewPort::setEdgeWidget ( QWidget *  newwidg,
int  position = 0,
bool  restyle = true 
)
slot

◆ setEmitMessage

void SViewPort::setEmitMessage ( bool  nemitm)
slot

◆ setHUDText

void SViewPort::setHUDText ( int  position,
const QString &  text 
)
slot

◆ setName

void SViewPort::setName ( const QString &  npred)
slot

◆ setProgress

void SViewPort::setProgress ( int  prog)
slot

◆ setScaleFit

void SViewPort::setScaleFit ( bool  doscale)
virtualslot

◆ setScaleZoom

void SViewPort::setScaleZoom ( float  nzoom)
slot

◆ setWaiting

void SViewPort::setWaiting ( bool  waitstat = true)
slot

◆ showEvent()

void SViewPort::showEvent ( QShowEvent *  event)
protected

◆ showHUD

void SViewPort::showHUD ( bool  nhud)
slot

◆ showMessage

void SViewPort::showMessage ( const QString &  lmessage = "")
slot

◆ showSImage

void SViewPort::showSImage ( Simulacrum::SSpace newsimage)
slot

◆ sourceSSpace()

SSpace * SViewPort::sourceSSpace ( )

◆ sourceSSpaceToCoord()

SVector SViewPort::sourceSSpaceToCoord ( const SVector sspacecoord)

◆ updated

void Simulacrum::SViewPort::updated ( bool  )
signal

◆ updateWidgets

void SViewPort::updateWidgets ( )
slot

◆ wheelDown

void Simulacrum::SViewPort::wheelDown ( SViewPort ,
int  x,
int  y 
)
signal

◆ wheelEvent()

void SViewPort::wheelEvent ( QWheelEvent *  event)
protected

◆ wheelUp

void Simulacrum::SViewPort::wheelUp ( SViewPort ,
int  x,
int  y 
)
signal

Member Data Documentation

◆ BGColor

QColor Simulacrum::SViewPort::BGColor
protected

◆ BusyDrawer

BusyWidget* Simulacrum::SViewPort::BusyDrawer
protected

◆ BW

QWidget * Simulacrum::SViewPort::BW
protected

◆ ClearMessageTimer

QTimer* Simulacrum::SViewPort::ClearMessageTimer
protected

◆ HUD

SViewPortHUD* Simulacrum::SViewPort::HUD
protected

◆ initIMG

SSpace Simulacrum::SViewPort::initIMG
protected

◆ LW

QWidget * Simulacrum::SViewPort::LW
protected

◆ RenderSurface

SRenderSurface* Simulacrum::SViewPort::RenderSurface
protected

◆ RenderSurfaceWidget

QWidget* Simulacrum::SViewPort::RenderSurfaceWidget
protected

◆ RW

QWidget * Simulacrum::SViewPort::RW
protected

◆ SourceImage

SSpace* Simulacrum::SViewPort::SourceImage
protected

◆ TW

QWidget* Simulacrum::SViewPort::TW
protected

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