50 #include "PanoramaControlPlugin.hh"
53 PanoramaControlPlugin::PanoramaControlPlugin() :
59 void PanoramaControlPlugin::initializePlugin(){
63 connect(tool_->hFOV , SIGNAL( valueChanged(
double) ),
this, SLOT(
slotValuesChanged(
double) ) );
64 connect(tool_->vFOV , SIGNAL( valueChanged(
double) ),
this, SLOT(
slotValuesChanged(
double) ) );
65 connect(tool_->cutOff, SIGNAL( valueChanged(
double) ),
this, SLOT(
slotValuesChanged(
double) ) );
67 connect(tool_->loadButton, SIGNAL( clicked() ),
this, SLOT(
slotLoadImage() ) );
70 QIcon* toolIcon_ =
new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"PanoControl.png");
71 emit addToolbox( tr(
"Panorama Control") , tool_, toolIcon_);
99 emit log(
LOGERR,
"Unable to get or create new Sky Dome Object");
104 QString file = QFileDialog::getOpenFileName ( 0,
"Load Panorama Image",
"",
"Images (*.png *.xpm *.jpg)", 0, 0 );
124 domeObject->
getSkyDome().setHorizontalFOV( tool_->hFOV->value() );
125 domeObject->
getSkyDome().setVerticalFOV(tool_->vFOV->value() );
126 domeObject->
getSkyDome().setTopOffset(tool_->cutOff->value() );
138 #if QT_VERSION < 0x050000
void slotValuesChanged(double _unused)
Spinboxes changed.
unsigned int activeExaminer()
Get the id of the examiner which got the last mouse events.
void setTextureFileName(const QString &_textureFileName)
Defines the texture that will be used.
SkyDomeObject * skyDomeObject(int _objectId)
Get a SkyDomeObject from id if possible.
DLLEXPORT ObjectIterator objectsEnd()
Return Iterator to Object End.
const UpdateType UPDATE_TEXTURE(UpdateTypeSet(1)<< 11)
Textures have changed.
SkyDome & getSkyDome()
Get all Info for the Object as a string.
const QStringList TARGET_OBJECTS("target")
Iterable object range.
void slotLoadImage()
Button slot iterating over all targets and passing them to the correct functions. ...