Fix typo
This commit is contained in:
parent
9eb917af08
commit
ecc61ba784
|
@ -204,7 +204,7 @@ void AbstractSplitView::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp
|
|||
}
|
||||
else if (strcmp(Reason,"Gradient") == 0) {
|
||||
for (std::vector<View3DInventorViewer*>::iterator it = _viewer.begin(); it != _viewer.end(); ++it)
|
||||
(*it)->setGradientBackgroud((rGrp.GetBool("Gradient",true)));
|
||||
(*it)->setGradientBackground((rGrp.GetBool("Gradient",true)));
|
||||
}
|
||||
else if (strcmp(Reason,"UseAntialiasing") == 0) {
|
||||
for (std::vector<View3DInventorViewer*>::iterator it = _viewer.begin(); it != _viewer.end(); ++it)
|
||||
|
@ -238,9 +238,9 @@ void AbstractSplitView::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp
|
|||
for (std::vector<View3DInventorViewer*>::iterator it = _viewer.begin(); it != _viewer.end(); ++it) {
|
||||
(*it)->setBackgroundColor(SbColor(r1, g1, b1));
|
||||
if (rGrp.GetBool("UseBackgroundColorMid",false) == false)
|
||||
(*it)->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3));
|
||||
(*it)->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3));
|
||||
else
|
||||
(*it)->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4));
|
||||
(*it)->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -307,7 +307,7 @@ void View3DInventor::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M
|
|||
_viewer->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",true));
|
||||
}
|
||||
else if (strcmp(Reason,"Gradient") == 0) {
|
||||
_viewer->setGradientBackgroud((rGrp.GetBool("Gradient",true)));
|
||||
_viewer->setGradientBackground((rGrp.GetBool("Gradient",true)));
|
||||
}
|
||||
else if (strcmp(Reason,"UseAntialiasing") == 0) {
|
||||
_viewer->getGLRenderAction()->setSmoothing(rGrp.GetBool("UseAntialiasing",false));
|
||||
|
@ -357,9 +357,9 @@ void View3DInventor::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M
|
|||
r4 = ((col4 >> 24) & 0xff) / 255.0; g4 = ((col4 >> 16) & 0xff) / 255.0; b4 = ((col4 >> 8) & 0xff) / 255.0;
|
||||
_viewer->setBackgroundColor(SbColor(r1, g1, b1));
|
||||
if (rGrp.GetBool("UseBackgroundColorMid",false) == false)
|
||||
_viewer->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3));
|
||||
_viewer->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3));
|
||||
else
|
||||
_viewer->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4));
|
||||
_viewer->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@ View3DInventorViewer::View3DInventorViewer (QWidget *parent, const char *name,
|
|||
setViewing(false);
|
||||
|
||||
setBackgroundColor(SbColor(0.1f, 0.1f, 0.1f));
|
||||
setGradientBackgroud(true);
|
||||
setGradientBackground(true);
|
||||
|
||||
// set some callback functions for user interaction
|
||||
addStartCallback(interactionStartCB);
|
||||
|
@ -420,7 +420,7 @@ void View3DInventorViewer::handleEventCB(void * ud, SoEventCallback * n)
|
|||
SoGLWidgetElement::set(action->getState(), qobject_cast<QGLWidget*>(that->getGLWidget()));
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setGradientBackgroud(bool on)
|
||||
void View3DInventorViewer::setGradientBackground(bool on)
|
||||
{
|
||||
if (on && backgroundroot->findChild(pcBackGround) == -1)
|
||||
backgroundroot->addChild(pcBackGround);
|
||||
|
@ -428,15 +428,15 @@ void View3DInventorViewer::setGradientBackgroud(bool on)
|
|||
backgroundroot->removeChild(pcBackGround);
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setGradientBackgroudColor(const SbColor& fromColor,
|
||||
const SbColor& toColor)
|
||||
void View3DInventorViewer::setGradientBackgroundColor(const SbColor& fromColor,
|
||||
const SbColor& toColor)
|
||||
{
|
||||
pcBackGround->setColorGradient(fromColor, toColor);
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setGradientBackgroudColor(const SbColor& fromColor,
|
||||
const SbColor& toColor,
|
||||
const SbColor& midColor)
|
||||
void View3DInventorViewer::setGradientBackgroundColor(const SbColor& fromColor,
|
||||
const SbColor& toColor,
|
||||
const SbColor& midColor)
|
||||
{
|
||||
pcBackGround->setColorGradient(fromColor, toColor, midColor);
|
||||
}
|
||||
|
|
|
@ -254,12 +254,12 @@ public:
|
|||
*/
|
||||
void viewSelection();
|
||||
|
||||
void setGradientBackgroud(bool b);
|
||||
void setGradientBackgroudColor(const SbColor& fromColor,
|
||||
const SbColor& toColor);
|
||||
void setGradientBackgroudColor(const SbColor& fromColor,
|
||||
const SbColor& toColor,
|
||||
const SbColor& midColor);
|
||||
void setGradientBackground(bool b);
|
||||
void setGradientBackgroundColor(const SbColor& fromColor,
|
||||
const SbColor& toColor);
|
||||
void setGradientBackgroundColor(const SbColor& fromColor,
|
||||
const SbColor& toColor,
|
||||
const SbColor& midColor);
|
||||
void setEnabledFPSCounter(bool b);
|
||||
void setNavigationType(Base::Type);
|
||||
NavigationStyle* navigationStyle() const;
|
||||
|
|
Loading…
Reference in New Issue
Block a user