virtual int GetNodeObjId(int theVtkID);
virtual int GetElemObjId(int theVtkID);
- std::string myFieldName;
-
protected:
VISU_Actor();
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
class CustomItem : public QCustomMenuItem
try{
QString VisuInputDir = getVisuInputDir();
QString VisuOutputDir = getVisuOutputDir();
- vtkRenderer *theRenderer = GetRenderer();
SALOMEDS::Study_var aStudy = GetActiveStudy()->getStudyDocument(); //Document OCAF de l'etude active
SALOMEDS::StudyBuilder_var aStudyBuilder = aStudy->NewBuilder();
case 54:
{
QMenuData* pp;
- QMenuItem* item = parent->menuBar()->findItem(theCommandID,&pp);
bool check = !pp->isItemChecked(theCommandID);
pp->setItemChecked(theCommandID,check);
switch(theCommandID){
bool VisuGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* thePopup, const QString & theContext,
const QString & theParent, const QString & theObject)
{
- int isViewer = (theParent.compare("ObjectBrowser") != 0), initId = isViewer? 800: 900;
QAD_ResourceMgr* rmgr = parent->createResourceManager();
bool aIsLocked = isStudyLocked( GetActiveStudy()->getStudyDocument() );
QAD_Application::getDesktop()->putInfo( "Exporting To File " + aFile + "..." );
aDir = QAD_Tools::getDirFromPath(aFile);
QAD_CONFIG->addSetting("Visu:OutputDir",aDir);
- if(VISU::Result_i* aResult = dynamic_cast<VISU::Result_i*>(aBase)){
+ if(dynamic_cast<VISU::Result_i*>(aBase)){
try{
//APO - aResult->GetInput()->ToFile(aFile.latin1());
QAD_Application::getDesktop()->putInfo(aFile+" exported.");
vtkActor *anActor;
VISU_Actor* anVISUActor = NULL;
VISU_Actor* aResActor = NULL;
- VISU::Prs3d_i* aSrcAddr = thePrs;
for(anActColl->InitTraversal(); (anActor = anActColl->GetNextActor()) != NULL; ){
if(!SALOME_Actor::SafeDownCast(anActor))
continue;
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
int VISU::CutLines_i::IsPossible(Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
void VISU::CutLines_i::SameAs(const CutLines_i* theOrigin){
- CutLines_i* aCutLines = const_cast<CutLines_i*>(theOrigin);
VISU::ScalarMap_i::SameAs(theOrigin);
}
typedef map<int,TXYMap> TXYMapCont;
typedef map<long,long> TLineIdCont;
- const VISU::TField::TValField& aValField = myField->myValField;
- const VISU::TField::TValForTime& aValForTime = aValField.find((int)myIteration)->second;
- const VISU::TField::TTime& aTime = aValForTime.myTime;
QString aTitle;
- //aTitle.sprintf("%s %s",myTitle.c_str(),aTime.second.c_str());
aTitle.sprintf("%s",myTitle.c_str());
aTitle = aTitle.simplifyWhiteSpace();
aTableOfReal->SetTitle(aTitle.latin1());
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
int VISU::CutPlanes_i::IsPossible(Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
void VISU::CutPlanes_i::SameAs(const CutPlanes_i* theOrigin){
- CutPlanes_i* aCutPlanes = const_cast<CutPlanes_i*>(theOrigin);
VISU::ScalarMap_i::SameAs(theOrigin);
}
void VISU::CutPlanes_i::ToStream(std::ostringstream& theStr){
ScalarMap_i::ToStream(theStr);
- int aNbPlanes = GetNbPlanes();
-
Storable::DataToStream( theStr, "myNbPlanes", int(GetNbPlanes()));
Storable::DataToStream( theStr, "myDisplacement", GetDisplacement());
Storable::DataToStream( theStr, "myBasePlane", int(GetOrientationType()));
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
int VISU::DeformedShape_i::IsPossible(Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
int VISU::IsoSurfaces_i::IsPossible(Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
void VISU::IsoSurfaces_i::SameAs(const IsoSurfaces_i* theOrigin) {
- IsoSurfaces_i* aIsoSurfaces = const_cast<IsoSurfaces_i*>(theOrigin);
VISU::ScalarMap_i::SameAs(theOrigin);
}
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
static int INCMEMORY = 4;
myIsFixedRange = (aFixRange.compare("true") == 0);
if(myIsFixedRange){
- float aScalarRange[2];
QString aRangeMin = QAD_CONFIG->getSetting("Visu:SBMinimumValue");
float aMin = (aRangeMin.isEmpty())? 0 : aRangeMin.toFloat();
QString aRangeMax = QAD_CONFIG->getSetting("Visu:SBMaximumValue");
VISU::Prs3d_i::CreateActor(anActor,theIO);
anActor->SetBarVisibility(true);
anActor->SetRepresentation(2);
- anActor->myFieldName = myFieldName;
UpdateActor(anActor);
}catch(...) {
anActor->Delete();
using namespace std;
-//QWaitCondition myCondition;
-static int MYDELAY = 1;
//************************************************************************
VISU_TimeAnimation::VISU_TimeAnimation(SALOMEDS::Study_ptr theStudy, VISU::View3D_ptr theView3D) {
bool aNoError = true;
clearView();
- vtkRenderer* aRen = myView->getRenderer();
for (int i = 0; i < getNbFields(); i++) {
FieldData& aData = myFieldsLst[i];
#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
static int INCMEMORY = 4+12;
try{
VISU::Prs3d_i::CreateActor(anActor,theIO);
anActor->SetBarVisibility(true);
- anActor->myFieldName = myFieldName;
anActor->GetProperty()->SetColor(myColor.R,myColor.G,myColor.B);
anActor->GetProperty()->SetLineWidth(GetLineWidth());
UpdateActor(anActor);
VISU_Actor* GetActor(VISU::Prs3d_i* thePrs3d, VTKViewer_ViewFrame* theVTKFrame){
- vtkActor *anActor;
vtkActorCollection *anActColl = theVTKFrame->getRenderer()->GetActors();
anActColl->InitTraversal();
while(vtkActor *anActor = anActColl->GetNextActor())