float aColor[3];
vtkRenderer* aRenderer = theViewWindow->getRenderer();
aRenderer->GetBackground(aColor);
- Storable::DataToStream(theStr,std::string("myColor") + theSuffix + ".R",aColor[0]);
- Storable::DataToStream(theStr,std::string("myColor") + theSuffix + ".G",aColor[1]);
- Storable::DataToStream(theStr,std::string("myColor") + theSuffix + ".B",aColor[2]);
+ Storable::DataToStream(theStr,(std::string("myColor") + theSuffix + ".R").c_str(),aColor[0]);
+ Storable::DataToStream(theStr,(std::string("myColor") + theSuffix + ".G").c_str(),aColor[1]);
+ Storable::DataToStream(theStr,(std::string("myColor") + theSuffix + ".B").c_str(),aColor[2]);
double aPosition[3];
vtkCamera* aCamera = aRenderer->GetActiveCamera();
aCamera->GetPosition(aPosition);
- Storable::DataToStream(theStr,std::string("myPosition") + theSuffix + "[0]",aPosition[0]);
- Storable::DataToStream(theStr,std::string("myPosition") + theSuffix + "[1]",aPosition[1]);
- Storable::DataToStream(theStr,std::string("myPosition") + theSuffix + "[2]",aPosition[2]);
+ Storable::DataToStream(theStr,(std::string("myPosition") + theSuffix + "[0]").c_str(),aPosition[0]);
+ Storable::DataToStream(theStr,(std::string("myPosition") + theSuffix + "[1]").c_str(),aPosition[1]);
+ Storable::DataToStream(theStr,(std::string("myPosition") + theSuffix + "[2]").c_str(),aPosition[2]);
double aFocalPnt[3];
aCamera->GetFocalPoint(aFocalPnt);
- Storable::DataToStream(theStr,std::string("myFocalPnt") + theSuffix + "[0]",aFocalPnt[0]);
- Storable::DataToStream(theStr,std::string("myFocalPnt") + theSuffix + "[1]",aFocalPnt[1]);
- Storable::DataToStream(theStr,std::string("myFocalPnt") + theSuffix + "[2]",aFocalPnt[2]);
+ Storable::DataToStream(theStr,(std::string("myFocalPnt") + theSuffix + "[0]").c_str(),aFocalPnt[0]);
+ Storable::DataToStream(theStr,(std::string("myFocalPnt") + theSuffix + "[1]").c_str(),aFocalPnt[1]);
+ Storable::DataToStream(theStr,(std::string("myFocalPnt") + theSuffix + "[2]").c_str(),aFocalPnt[2]);
double aViewUp[3];
aCamera->GetViewUp(aViewUp);
- Storable::DataToStream(theStr,std::string("myViewUp") + theSuffix + "[0]",aViewUp[0]);
- Storable::DataToStream(theStr,std::string("myViewUp") + theSuffix + "[1]",aViewUp[1]);
- Storable::DataToStream(theStr,std::string("myViewUp") + theSuffix + "[2]",aViewUp[2]);
+ Storable::DataToStream(theStr,(std::string("myViewUp") + theSuffix + "[0]").c_str(),aViewUp[0]);
+ Storable::DataToStream(theStr,(std::string("myViewUp") + theSuffix + "[1]").c_str(),aViewUp[1]);
+ Storable::DataToStream(theStr,(std::string("myViewUp") + theSuffix + "[2]").c_str(),aViewUp[2]);
float aParallelScale = aCamera->GetParallelScale();
- Storable::DataToStream(theStr,std::string("myParallelScale") + theSuffix,aParallelScale);
+ Storable::DataToStream(theStr,(std::string("myParallelScale") + theSuffix).c_str(),aParallelScale);
double aScaleFactor[3];
theViewWindow->GetScale(aScaleFactor);
- Storable::DataToStream(theStr,std::string("myScaleFactor") + theSuffix + "[0]",aScaleFactor[0]);
- Storable::DataToStream(theStr,std::string("myScaleFactor") + theSuffix + "[1]",aScaleFactor[1]);
- Storable::DataToStream(theStr,std::string("myScaleFactor") + theSuffix + "[2]",aScaleFactor[2]);
+ Storable::DataToStream(theStr,(std::string("myScaleFactor") + theSuffix + "[0]").c_str(),aScaleFactor[0]);
+ Storable::DataToStream(theStr,(std::string("myScaleFactor") + theSuffix + "[1]").c_str(),aScaleFactor[1]);
+ Storable::DataToStream(theStr,(std::string("myScaleFactor") + theSuffix + "[2]").c_str(),aScaleFactor[2]);
}
//---------------------------------------------------------------
aSegmentationMode = "Sphere";
}
- Storable::DataToStream(theStr,"mySegmentationMode",aSegmentationMode);
+ Storable::DataToStream(theStr,"mySegmentationMode",aSegmentationMode.c_str());
}
}
{
QStringList lst = QStringList::split( gSeparator, QString( paramName.c_str() ) );
if ( !lst.isEmpty() && index < lst.size() )
- return lst[index];
+ return lst[index].latin1();
return "";
}
viewerType == VVTK_Viewer::Type().latin1() ) {
// used as inner map key for locating the actor.
- QString viewerTypeIndex = viewerType + QString::number( viewIndex );
+ QString viewerTypeIndex = QString( viewerType.c_str() ) + QString::number( viewIndex );
if ( paramName == "Visibility" && displayer() ) {
// if VVTK, then we must create viewer first, because
QPtrList<SUIT_ViewManager> lst;
- getApp()->viewManagers( viewerType, lst );
+ getApp()->viewManagers( viewerType.c_str(), lst );
// SVTK/VVTK ViewManager always has 1 ViewWindow, so view index is index of view manager
if ( viewIndex >= 0 && viewIndex < lst.count() ) {
if ( paramName == "Visibility" && displayer() ) {
QPtrList<SUIT_ViewManager> lst;
- getApp()->viewManagers( viewerType, lst );
+ getApp()->viewManagers( viewerType.c_str(), lst );
if ( viewIndex >= 0 && viewIndex < lst.count() ) {
SUIT_ViewManager* vman = lst.at( viewIndex );