libVisuConvertor_la_LDFLAGS= \
- $(MED3_LIBS) \
+ $(MED3_LIBS_C_ONLY) \
$(BOOST_LIB_THREAD) \
$(BOOST_LIB_DATE_TIME) \
$(VTK_LIBS) \
{
return myVisuGen->LoadTexture(theTextureFile);
}
+
+ /* Version information */
+ char* VISU_Gen_i::getVersion()
+ {
+ return myVisuGen->getVersion();
+ }
};
CORBA::Boolean theIsMultiFile,
CORBA::Boolean& theIsValidScript);
+ virtual char* getVersion();
+
virtual
VISU::ColoredPrs3dCache_ptr
GetColoredPrs3dCache(SALOMEDS::Study_ptr theStudy);
$(GUI_LDFLAGS) -lqtx -lsuit -lvtkTools \
$(MED_LDFLAGS) \
../CONVERTOR/libVisuConvertor.la \
- $(MED3_LIBS) \
+ $(MED3_LIBS_C_ONLY) \
$(QT_LIBS) \
$(OGL_LIBS)
</message>
<message>
<source>FLT_MED_FILES</source>
- <translation>MED Files (*.med)</translation>
+ <translation>MED Files (*.*med)</translation>
</message>
<message>
<source>FLT_SAUV_FILES</source>
</message>
<message>
<source>FLT_MED_FILES</source>
- <translation>MED Files (*.med)</translation>
+ <translation>MED Files (*.*med)</translation>
</message>
<message>
<source>FLT_SAUV_FILES</source>
-I$(srcdir)/../CONVERTOR \
-I$(srcdir)/../PIPELINE \
-I$(srcdir)/../OBJECT \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libVISUEngineImpl_la_LDFLAGS= \
$(KERNEL_LDFLAGS) \
bool withZ = aServant->GetZRow()>0;
bool isV2 = aServant->GetIsV2();
- theStr << thePrefix << "aName2ObjectMap['" << aName << "'] = visu.CreateCurve";
+ theStr << thePrefix << aName << " = visu.CreateCurve";
if( isV2 )
theStr << "WithZExt";
else if( withZ )
case Curve::DASHDOTDOTLINE: aParam = "VISU.Curve.DASHDOTDOTLINE"; break;
}
theStr<<", "<<aParam<<", "<<aServant->GetLineWidth()<<")"<<endl; // line type,width
+ // Add to Name->Object map
+ theStr << thePrefix << "aName2ObjectMap['" << aName << "'] = " << aName << endl;
}
return;
case VISU::TTABLE:
aStr,
aPrefix);
- if (theIsPublished)
- {
- SALOMEDS::AttributeParameter_var ap = aStudy->GetModuleParameters("Interface Applicative", "Post-Pro", -1);
- if(!CORBA::is_nil(ap)) {
- std::map<std::string,std::string>::iterator it = aEntry2NameMap.begin();
- for( ;it != aEntry2NameMap.end(); it++ ) {
- //1. Encode entry
- if ( ((*it).first).length() < 7 ) continue;
- std::string tail( (*it).first, 6, ((*it).first).length()-1 );
- std::string newEntry(ComponentDataType());
- newEntry+=("_"+tail);
-
- CORBA::String_var anEntry = CORBA::string_dup(newEntry.c_str());
+ if (theIsPublished) {
+ SALOMEDS::AttributeParameter_var ap = aStudy->GetModuleParameters("Interface Applicative", "Post-Pro", -1);
+ if (!CORBA::is_nil(ap)) {
+ std::map<std::string,std::string>::iterator it = aEntry2NameMap.begin();
+ for ( ;it != aEntry2NameMap.end(); it++ ) {
+ //1. Encode entry
+ if ( ((*it).first).length() < 7 ) continue;
+ std::string tail( (*it).first, 6 );
+ std::string newEntry(ComponentDataType());
+ newEntry = newEntry + "_" + tail;
+
+ CORBA::String_var anEntry = CORBA::string_dup( newEntry.c_str() );
- if( ap->IsSet(anEntry, 6) ) { //6 Means string array, see SALOMEDS_Attributes.idl AttributeParameter interface
- std::string idCommand = std::string("visu.getObjectID(") + (*it).second + std::string(")");
- SALOMEDS::StringSeq_var aSeq= ap->GetStrArray(anEntry);
- int oldLenght = aSeq->length();
- aSeq->length(oldLenght+2);
- aSeq[oldLenght] = CORBA::string_dup("_PT_OBJECT_ID_");
- aSeq[oldLenght + 1] = CORBA::string_dup(idCommand.c_str());
- ap->SetStrArray( anEntry, aSeq );
- }
+ if ( ap->IsSet( anEntry.in(), 6 ) ) { //6 Means string array, see SALOMEDS_Attributes.idl AttributeParameter interface
+ std::string idCommand = std::string("visu.getObjectID(") + (*it).second + std::string(")");
+ SALOMEDS::StringSeq_var aSeq= ap->GetStrArray(anEntry);
+ int oldLenght = aSeq->length();
+ aSeq->length(oldLenght+2);
+ aSeq[oldLenght] = CORBA::string_dup("_PT_OBJECT_ID_");
+ aSeq[oldLenght + 1] = CORBA::string_dup(idCommand.c_str());
+ ap->SetStrArray( anEntry, aSeq );
}
}
- }
-
+ }
+ }
//Output the script that sets up the visul parameters.
if(theIsPublished) {
// Author : Alexey PETROV
// Module : VISU
+#include "VISU_version.h"
#include "VISU_Gen_i.hh"
#include "VISU_Result_i.hh"
#include "VISU_PrsObject_i.hh"
return aMarkerId;
}
+
+ // Version information
+ char* VISU_Gen_i::getVersion()
+ {
+#if VISU_DEVELOPMENT
+ return CORBA::string_dup( VISU_VERSION_STR"dev" );
+#else
+ return CORBA::string_dup( VISU_VERSION_STR );
+#endif
+ }
}
CORBA::Long theObjectID,
SALOMEDS::SObject_ptr theObject);
+
+ char* getVersion();
+
virtual
VISU::ColoredPrs3dCache_ptr
GetColoredPrs3dCache(SALOMEDS::Study_ptr theStudy);
static QString aCommand;
std::string aFilePath = theTmpDir + aFileName;
- aCommand.sprintf(" %s %s", GetFileInfo().filePath().toLatin1().data(), aFilePath.c_str());
+ aCommand.sprintf(" \"%s\" \"%s\"", GetFileInfo().filePath().toLatin1().data(), aFilePath.c_str());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( COPY_COMMAND );
if (theIsMultiFile) { // set this file as new - temporary
static QString aCommand;
- aCommand.sprintf(" %s %s%s",aHDFFileName, aResultPath, myFileInfo.baseName().toLatin1().data());
+ aCommand.sprintf(" \"%s\" \"%s%s\"",aHDFFileName, aResultPath, myFileInfo.baseName().toLatin1().data());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( MOVE_COMMAND );
myFileInfo.setFile(QString(aResultPath) + myFileInfo.baseName());
} else { // change current temporary file to the new: with hdf-format
static QString aCommand;
- aCommand.sprintf(" %s %s\0",aHDFFileName, myFileInfo.filePath().toLatin1().data());
+ aCommand.sprintf(" \"%s\" \"%s\"\0",aHDFFileName, myFileInfo.filePath().toLatin1().data());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( MOVE_COMMAND );
{
static QString aCommand;
const char* aTempFileName = myFileInfo.absoluteFilePath().toLatin1();
- aCommand.sprintf(" %s %s", aTempFileName, theTargetFileName);
+ aCommand.sprintf(" \"%s\" \"%s\"", aTempFileName, theTargetFileName);
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( COPY_COMMAND );