# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-MACRO_EXPANSION = NO
+MACRO_EXPANSION = YES
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
# the macro expansion is limited to the macros specified with the PREDEFINED and
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-EXPAND_ONLY_PREDEF = NO
+EXPAND_ONLY_PREDEF = YES
# If the SEARCH_INCLUDES tag is set to YES the includes files in the
# INCLUDE_PATH will be searched if a #include is found.
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-PREDEFINED =
+PREDEFINED = vtkTypeMacro()= \
+ vtkStandardNewMacro()=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.
-DOT_GRAPH_MAX_NODES = 50
+DOT_GRAPH_MAX_NODES = 100
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
{
beginService("VisualizationComponent_i::Visualize");
void *ret_th;
- pthread_t *th;
+ pthread_t *th = 0;
exception_st *est;
try
/*!
\brief Save data model (write ParaView pipeline to the files).
- \param listOfFiles returning list of the (temporary) files with saved data
+ \param theListOfFiles returning list of the (temporary) files with saved data
\return operation status (\c true on success and \c false on error)
*/
bool PVGUI_DataModel::save( QStringList& theListOfFiles)
\brief Save data model (write ParaView pipeline state to the files).
\param url study file path
\param study study pointer
- \param listOfFiles returning list of the (temporary) files with saved data
+ \param theListOfFiles returning list of the (temporary) files with saved data
\return operation status (\c true on success and \c false on error)
*/
-bool PVGUI_DataModel::saveAs( const QString& url, CAM_Study* study, QStringList& theListOfFiles)
+bool PVGUI_DataModel::saveAs( const QString& url, CAM_Study* /*study*/, QStringList& theListOfFiles)
{
myStudyURL = url;
return save( theListOfFiles );
virtual bool dumpPython( const QString&, CAM_Study*, bool, QStringList& );
virtual bool open( const QString&, CAM_Study*, QStringList );
virtual bool save( QStringList& );
- virtual bool saveAs( const QString&, CAM_Study*, QStringList& );
+ virtual bool saveAs( const QString& url, CAM_Study* study, QStringList& theListOfFiles );
virtual bool create( CAM_Study* );
private:
/*!
\brief Show toolbars at \a vw PV view window creating when PARAVIS is active.
*/
-void PVGUI_Module::onPVViewCreated( SUIT_ViewWindow* vw )
+void PVGUI_Module::onPVViewCreated( SUIT_ViewWindow* /*vw*/ )
{
myGuiElements->setToolBarVisible( true );
restoreDockWidgetsState();
// Recent Files
myRecentMenuId = createMenu( tr( "MEN_RECENT_FILES" ), aPVMnu, -1, 5 );
QMenu* aMenu = menuMgr()->findMenu( myRecentMenuId );
- pqRecentFilesMenu* aRecentFilesMenu = new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
+ /*pqRecentFilesMenu* aRecentFilesMenu = */new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
QList<QAction*> anActns = aMenu->actions();
for (int i = 0; i < anActns.size(); ++i)
createMenu( anActns.at(i), myRecentMenuId );
}
//-----------------------------------------------------------------------------
-void PVGUI_ParaViewSettingsPane::clicked(QAbstractButton *button)
+void PVGUI_ParaViewSettingsPane::clicked(QAbstractButton * /*button*/)
{
// Ui::CustomSettingsWidget &ui = this->Internals->Ui;
// QDialogButtonBox::ButtonRole role = ui.buttonBox->buttonRole(button);
/**!
* This class is (almost) a copy/paste of what is found in
- * *<PARAVIEW>/Qt/Components/pqSettingsDialog.h*
+ * *[PARAVIEW]/Qt/Components/pqSettingsDialog.h*
* This is (almost) the same, except for the inheritance to QtxUserDefinedContent providing the link
* to SALOME preference mechanism.
* The UI content of pqSettingsDialog is put in a (PARAVIS) widget called pqCustomSettingsWidget.
void saveInQSettings(const char* key, vtkSMProperty* smproperty);
private:
- Q_DISABLE_COPY(PVGUI_ParaViewSettingsPane);
+ Q_DISABLE_COPY(PVGUI_ParaViewSettingsPane)
class pqInternals;
pqInternals* Internals;
};
//------------------------------------------------------------------------------
-vtkStandardNewMacro(vtkArrayRenamerFilter);
+vtkStandardNewMacro(vtkArrayRenamerFilter)
//--------------------------------------------------------------------------------------------------
vtkArrayRenamerFilter::vtkArrayRenamerFilter()
// std::cout<<"vtkArrayRenamerFilter::RequestData !!! "<<std::endl;
// Get the information
- vtkInformation* anInputInfo = theInputVector[0]->GetInformationObject(0);
- vtkInformation* anOutputInfo = theOutputVector->GetInformationObject(0);
+ //vtkInformation* anInputInfo = theInputVector[0]->GetInformationObject(0); // todo: unused
+ //vtkInformation* anOutputInfo = theOutputVector->GetInformationObject(0); // todo: unused
vtkDataSet* anInput = vtkDataSet::GetData(theInputVector[0], 0);
vtkDataSet* anOutput = vtkDataSet::GetData(theOutputVector, 0);
/// Returns pointer on a new instance of the class
static vtkArrayRenamerFilter* New();
- vtkTypeMacro(vtkArrayRenamerFilter, vtkDataSetAlgorithm);
+ vtkTypeMacro(vtkArrayRenamerFilter, vtkDataSetAlgorithm)
void SetArrayInfo(const char* originarrayname, const char* newarrayname, bool copy);
void ClearArrayInfo();
{
if (myComponentsInfoVector[idx.row()].second == myComponentsInfoVector[idx.row()].first)
return QApplication::palette().color(QPalette::Disabled, QPalette::Text);
+ break;
}
case Qt::FontRole:
{
const ComponentsInfoType& componentsInfo() const { return myComponentsInfoVector; }
private:
- Q_DISABLE_COPY(pqComponentsModel);
+ Q_DISABLE_COPY(pqComponentsModel)
};
/// Table model for the array's table
public:
//------------------------------------------------------------------
- const int nbComps() const { return myComponentsInfo.size(); }
+ int nbComps() const { return myComponentsInfo.size(); }
//------------------------------------------------------------------
- const bool isCompomentsModified() const
+ bool isCompomentsModified() const
{
foreach (pqComponentsModel::SingleComponentInfoType item, myComponentsInfo)
{
{
if (myArraysInfo[idx.row()].second.newName == myArraysInfo[idx.row()].first)
return QApplication::palette().color(QPalette::Disabled, QPalette::Text);
+ break;
}
case Qt::FontRole:
{
ArraysInfoType& editArraysInfo() { return myArraysInfo; }
private:
- Q_DISABLE_COPY(pqArraysModel);
+ Q_DISABLE_COPY(pqArraysModel)
};
//-----------------------------------------------------------------------------
-pqEditComponents::pqEditComponents(pqComponentsModel* model, QWidget* parent)
+pqEditComponents::pqEditComponents(pqComponentsModel* model, QWidget* /*parent*/)
{
myComponentsModel = model;
//-----------------------------------------------------------------------------
void pqArraysEditorPropertyWidget::onDataChanged(
- const QModelIndex& topleft, const QModelIndex& btmright)
+ const QModelIndex& topleft, const QModelIndex& /*btmright*/)
{
if (topleft.column() == pqArraysModel::PROCESSING || topleft.column() == pqArraysModel::NEW_NAME)
{
int nbCells(ca->GetNumberOfCells());
if(nbCells==0)
return 0;
- vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+ //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
const vtkIdType *conn(ca->GetData()->GetPointer(0));
for(int i=0;i<nbCells;i++)
{
int nbCells(ca->GetNumberOfCells());
if(nbCells==0)
return 0;
- vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+ //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
const vtkIdType *conn(ca->GetData()->GetPointer(0));
ids=DataArrayIdType::New() ; ids->alloc(0,1);
for(int i=0;i<nbCells;i++)
MCAuto<MEDCouplingUMesh> mesh(mf.getMesh());
mesh->setName(mfd->getMeshes()->getMeshAtPos(0)->getName());
MCAuto<DataArrayIdType> o2n(mesh->sortCellsInMEDFileFrmt());
- const DataArrayIdType *o2nPtr(o2n);
+ //const DataArrayIdType *o2nPtr(o2n); // todo: unused
MCAuto<DataArrayIdType> n2o;
mmu->setMeshAtLevel(meshDimRel,mesh);
const DataArrayIdType *n2oPtr(0);
if(!arr)
continue;
const char *name(arr->GetName());
- int nbCompo(arr->GetNumberOfComponents());
- vtkIdType nbTuples(arr->GetNumberOfTuples());
+ //int nbCompo(arr->GetNumberOfComponents());
+ //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
if(part)
mcarr=mcarr->selectByTupleId(part->begin(),part->end());
if(!arr)
continue;
const char *name(arr->GetName());
- int nbCompo(arr->GetNumberOfComponents());
- vtkIdType nbTuples(arr->GetNumberOfTuples());
+ //int nbCompo(arr->GetNumberOfComponents()); // todo: unused
+ //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
mcarr=mcarr->selectByTupleIdSafeSlice(bg,end,1);
mcarr->setName(name);
vtkCellArray *ca(ds->GetCells());
if(!ca)
return ;
- vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries());
- vtkIdType *caPtr(ca->GetData()->GetPointer(0));
+ //vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries()); // todo: unused
+ //vtkIdType *caPtr(ca->GetData()->GetPointer(0)); // todo: unused
vtkUnsignedCharArray *ct(ds->GetCellTypesArray());
if(!ct)
throw MZCException("ConvertFromUnstructuredGrid : internal error");
vtkIdTypeArray *cla(ds->GetCellLocationsArray());
- const vtkIdType *claPtr(cla->GetPointer(0));
+ //const vtkIdType *claPtr(cla->GetPointer(0)); // todo: unused
if(!cla)
throw MZCException("ConvertFromUnstructuredGrid : internal error 2");
const unsigned char *ctPtr(ct->GetPointer(0));
}
}
}
- int dummy(0);
MCAuto<DataArrayInt> levs(lev->getDifferentValues());
std::vector< MicroField > ms;
- vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations());
+ //vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations()); // todo: unused
for(const int *curLev=levs->begin();curLev!=levs->end();curLev++)
{
MCAuto<MEDCouplingUMesh> m0(MEDCouplingUMesh::New("",*curLev));
{
public:
MZCException(const std::string& s):_reason(s) { }
- virtual const char *what() const throw() { return _reason.c_str(); }
- virtual ~MZCException() throw() { }
+ virtual const char *what() const noexcept { return _reason.c_str(); }
+ virtual ~MZCException() noexcept { }
private:
std::string _reason;
};
#include <sstream>
#include <algorithm>
-vtkStandardNewMacro(vtkDevelopedSurface);
+vtkStandardNewMacro(vtkDevelopedSurface)
///////////////////
this->Modified();
}
-int vtkDevelopedSurface::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkDevelopedSurface::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector * /*outputVector*/)
{
//std::cerr << "########################################## vtkDevelopedSurface::RequestInformation ##########################################" << std::endl;
try
}
template<class T>
-void DealArray(vtkDataSetAttributes *pd, int pos, typename MEDFileVTKTraits<T>::VtkType *arr, std::vector<int>& nodeSel)
+void DealArray(vtkDataSetAttributes * /*pd*/, int /*pos*/, typename MEDFileVTKTraits<T>::VtkType *arr, std::vector<int>& nodeSel)
{
int nbc(arr->GetNumberOfComponents());
std::size_t nbt(nodeSel.size());
}
}
-int vtkDevelopedSurface::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkDevelopedSurface::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
//std::cerr << "########################################## vtkDevelopedSurface::RequestData ##########################################" << std::endl;
try
{
public:
static vtkDevelopedSurface* New();
- vtkTypeMacro(vtkDevelopedSurface, vtkDataSetAlgorithm);
+ vtkTypeMacro(vtkDevelopedSurface, vtkDataSetAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
void SetCutFunction(vtkImplicitFunction* func);
// Templated difference function
template <class T>
-void vtkTemporalDataDifference(vtkDifferenceTimestepsFilter* theDTF, vtkDataArray* theOutput,
+void vtkTemporalDataDifference(vtkDifferenceTimestepsFilter* /*theDTF*/, vtkDataArray* theOutput,
vtkDataArray** theArrays, vtkIdType theNumComp, T*)
{
T* anOutputData = static_cast<T*>(theOutput->GetVoidPointer(0));
theOutput->SetNumberOfTuples(N);
}
-vtkStandardNewMacro(vtkDifferenceTimestepsFilter);
+vtkStandardNewMacro(vtkDifferenceTimestepsFilter)
//--------------------------------------------------------------------------------------------------
vtkDifferenceTimestepsFilter::vtkDifferenceTimestepsFilter()
//--------------------------------------------------------------------------------------------------
int vtkDifferenceTimestepsFilter::RequestInformation(vtkInformation* vtkNotUsed(theRequest),
- vtkInformationVector** theInputVector, vtkInformationVector* theOutputVector)
+ vtkInformationVector** theInputVector, vtkInformationVector* /*theOutputVector*/)
{
// Get input and output information objects
vtkInformation* anInInfo = theInputVector[0]->GetInformationObject(0);
- vtkInformation* anOutInfo = theOutputVector->GetInformationObject(0);
+ //vtkInformation* anOutInfo = theOutputVector->GetInformationObject(0); // todo: unused
// Check for presence more than one time step
if (anInInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS()))
}
//--------------------------------------------------------------------------------------------------
-int vtkDifferenceTimestepsFilter::RequestUpdateExtent(vtkInformation* theRequest,
+int vtkDifferenceTimestepsFilter::RequestUpdateExtent(vtkInformation* /*theRequest*/,
vtkInformationVector** theInputVector, vtkInformationVector* theOutputVector)
{
// Get the information objects
/// Returns pointer on a new instance of the class
static vtkDifferenceTimestepsFilter* New();
- vtkTypeMacro(vtkDifferenceTimestepsFilter, vtkMultiTimeStepAlgorithm);
+ vtkTypeMacro(vtkDifferenceTimestepsFilter, vtkMultiTimeStepAlgorithm)
/// Prints current state of the objects
void PrintSelf(ostream&, vtkIndent) override;
#include <math.h>
//vtkCxxRevisionMacro(vtkElevationSurfaceFilter, "$Revision$");
-vtkStandardNewMacro(vtkElevationSurfaceFilter);
+vtkStandardNewMacro(vtkElevationSurfaceFilter)
vtkElevationSurfaceFilter::vtkElevationSurfaceFilter()
{
return 1;
}
-int vtkElevationSurfaceFilter::RequestInformation(vtkInformation *request,
- vtkInformationVector **input, vtkInformationVector *output)
+int vtkElevationSurfaceFilter::RequestInformation(vtkInformation * /*request*/,
+ vtkInformationVector ** /*input*/, vtkInformationVector * /*output*/)
{
return 1;
}
-int vtkElevationSurfaceFilter::RequestData(vtkInformation *request,
+int vtkElevationSurfaceFilter::RequestData(vtkInformation * /*request*/,
vtkInformationVector **input, vtkInformationVector *output)
{
vtkPolyData *pdIn = vtkPolyData::SafeDownCast(
{
public:
static vtkElevationSurfaceFilter* New();
- vtkTypeMacro(vtkElevationSurfaceFilter, vtkAlgorithm);
+ vtkTypeMacro(vtkElevationSurfaceFilter, vtkAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
// Description :
}
//------------------------------------------------------------------------------
-vtkStandardNewMacro(vtkEllipseBuilderFilter);
+vtkStandardNewMacro(vtkEllipseBuilderFilter)
//------------------------------------------------------------------------------
vtkEllipseBuilderFilter::vtkEllipseBuilderFilter() : vtkMultiBlockDataSetAlgorithm()
/// Returns pointer on a new instance of the class
static vtkEllipseBuilderFilter* New();
- vtkTypeMacro(vtkEllipseBuilderFilter, vtkMultiBlockDataSetAlgorithm);
+ vtkTypeMacro(vtkEllipseBuilderFilter, vtkMultiBlockDataSetAlgorithm)
/// Prints current state of the objects
void PrintSelf(ostream& os, vtkIndent indent) override;
using MEDCoupling::ON_GAUSS_PT;
using MEDCoupling::MCAuto;
-vtkStandardNewMacro(vtkGaussToCell);
+vtkStandardNewMacro(vtkGaussToCell)
vtkInformationDoubleVectorKey *GetMEDReaderMetaDataIfAny()
{
}
}
-int vtkGaussToCell::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGaussToCell::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector * /*outputVector*/)
{
//std::cerr << "########################################## vtkGaussToCell::RequestInformation ##########################################" << std::endl;
try
dc(inData,offData,nbgPerCell,zeNbCompo,outNbCells,outData);
}
-int vtkGaussToCell::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGaussToCell::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
//std::cerr << "########################################## vtkGaussToCell::RequestData ##########################################" << std::endl;
try
{
public:
static vtkGaussToCell* New();
- vtkTypeMacro(vtkGaussToCell, vtkUnstructuredGridAlgorithm);
+ vtkTypeMacro(vtkGaussToCell, vtkUnstructuredGridAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
void SetAvgFlag(bool avgStatus);
}
//---------------------------------------------------
-vtkJSONException::~vtkJSONException() throw()
+vtkJSONException::~vtkJSONException() noexcept
{
}
//---------------------------------------------------
-const char* vtkJSONException::what() const throw()
+const char* vtkJSONException::what() const noexcept
{
return Reason.c_str();
}
{
public:
vtkJSONException(const char* reason);
- ~vtkJSONException() throw();
- const char* what() const throw();
+ ~vtkJSONException() noexcept;
+ const char* what() const noexcept;
protected:
std::string Reason;
}
//---------------------------------------------------
-vtkJSONException::~vtkJSONException() throw () {
+vtkJSONException::~vtkJSONException() noexcept {
}
//---------------------------------------------------
-const char* vtkJSONException::what() const throw() {
+const char* vtkJSONException::what() const noexcept {
return Reason.c_str();
}
typedef std::vector<std::pair<std::string,std::vector<double> > > DataType;
Container(){}
void initKeys(std::vector<std::string> &keys, std::string &err) {
- for(int i = 0; i < keys.size(); i++) {
+ for(int i = 0; i < (int)keys.size(); i++) {
if( !checkVar(keys[i].c_str()) ) {
std::ostringstream oss;
oss<<"Bad key value '"<<keys[i].c_str()<<"'";
return;
}
bool found = false;
- for(int i = 0; i < _data.size(); i++) {
+ for(int i = 0; i < (int)_data.size(); i++) {
if(_data[i].first == key) {
_data[i].second.push_back(value);
found = true;
DataType _data;
};
-vtkStandardNewMacro(vtkJSONReader);
+vtkStandardNewMacro(vtkJSONReader)
//---------------------------------------------------
vtkJSONReader::vtkJSONReader() {
this->Parse(root, output_table);
return 1;
}
- catch(vtkJSONException e) {
+ catch(vtkJSONException& e) {
std::ostringstream oss;
oss<<e.what();
if(this->HasObserver("ErrorEvent") )
jSONListOfNames = jSONMetaData.get(SHT, Json::Value::null);
std::ostringstream oss;
oss<< "Short Names : [ ";
- for (int i = 0; i < jSONListOfNames.size(); i++) {
+ for (int i = 0; i < (int)jSONListOfNames.size(); i++) {
oss << "'" << jSONListOfNames[i].asString() << "'";
short_names.push_back(jSONListOfNames[i].asString());
- if ( i != jSONListOfNames.size() - 1 ) {
+ if ( i != (int)jSONListOfNames.size() - 1 ) {
oss << ", ";
}
}
jSONListOfLongName = jSONMetaData.get(LNG, Json::Value::null);
std::ostringstream oss;
oss << "Long Names : [ ";
- for (int i = 0; i < jSONListOfLongName.size(); ++i) {
+ for (int i = 0; i < (int)jSONListOfLongName.size(); ++i) {
oss << "'" << jSONListOfLongName[i].asString() << "'";
- if ( i != jSONListOfLongName.size()-1 ) {
+ if ( i != (int)jSONListOfLongName.size()-1 ) {
oss << ", ";
}
}
hasUnits = true;
std::ostringstream oss;
oss << "Units : [ ";
- for (int i = 0; i < jSONListOfUnits.size(); ++i) {
+ for (int i = 0; i < (int)jSONListOfUnits.size(); ++i) {
oss << "'" << jSONListOfUnits[i].asString() << "'";
- if ( i != jSONListOfUnits.size()-1 ) {
+ if ( i != (int)jSONListOfUnits.size()-1 ) {
oss << ", ";
}
}
}
initContainer = true;
}
- for(int i=0; i < members.size(); i++) {
+ for(int i=0; i < (int)members.size(); i++) {
Json::Value val = (*it).get(members[i],Json::Value::null);
double value = 0.0;
switch (val.type()) {
if(data.size() > 0)
nbRows = data[0].second.size();
- for(int i = 0; i < data.size(); i++) {
+ for(int i = 0; i < (int)data.size(); i++) {
vtkDoubleArray* newCol = vtkDoubleArray::New();
newCol->SetNumberOfValues(nbRows);
std::string name = data[i].first;
}
name += "]";
newCol->SetName(name.c_str());
- for(int j = 0; j < data[i].second.size(); j++) {
+ for(int j = 0; j < (int)data[i].second.size(); j++) {
newCol->SetValue(j, data[i].second[j]);
}
table->AddColumn(newCol);
{
public:
vtkJSONException(const char* reason);
- ~vtkJSONException() throw();
- const char* what() const throw();
+ ~vtkJSONException() noexcept;
+ const char* what() const noexcept;
protected:
std::string Reason;
{
public:
static vtkJSONReader* New();
- vtkTypeMacro(vtkJSONReader, vtkTableAlgorithm);
+ vtkTypeMacro(vtkJSONReader, vtkTableAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
// Specifies the name of the file
throw INTERP_KERNEL::Exception("There is an internal error ! The tree on server side has not the expected look !");
vtkAdjacentVertexIterator *it0(vtkAdjacentVertexIterator::New());
sil->GetAdjacentVertices(id0,it0);
- int kk(0),ll(0);
while(it0->HasNext())
{
vtkIdType id1(it0->Next());
void MEDFileFieldRepresentationLeavesArrays::appendFields(const MEDTimeReq *tr, const MEDCoupling::MEDFileFieldGlobsReal *globs, const MEDCoupling::MEDMeshMultiLev *mml, const MEDCoupling::MEDFileMeshStruct *mst, vtkDataSet *ds, ExportedTinyInfo *internalInfo) const
{
- const int VTK_DATA_ARRAY_DELETE=vtkDataArrayTemplate<double>::VTK_DATA_ARRAY_DELETE;
+ //const int VTK_DATA_ARRAY_DELETE=vtkDataArrayTemplate<double>::VTK_DATA_ARRAY_DELETE; // todo: unused
tr->setNumberOfTS((operator->())->getNumberOfTS());
tr->initIterator();
for(int timeStepId=0;timeStepId<tr->size();timeStepId++,++(*tr))
/*!
* \param [in] ms is the meshes pointer. It can be used only for information of geometric types. No special processing will be requested on ms.
+ * \param [in] meshName
+ * \param [in] sil
+ * \param [in] root
+ * \param [in] edge
+ * \param [out] names
*/
void MEDFileFieldRepresentationLeaves::feedSIL(const MEDCoupling::MEDFileMeshes *ms, const std::string& meshName, vtkMutableDirectedGraph* sil, vtkIdType root, vtkVariantArray *edge, std::vector<std::string>& names) const
{
fields_per_mesh[i]=_fields->partOfThisLyingOnSpecifiedMeshName(meshNames[i].c_str());
}
std::vector< MCAuto<MEDFileAnyTypeFieldMultiTS > > allFMTSLeavesToDisplaySafe;
- std::size_t k(0);
for(std::vector< MCAuto<MEDFileFields> >::const_iterator fields=fields_per_mesh.begin();fields!=fields_per_mesh.end();fields++)
{
for(int j=0;j<(*fields)->getNumberOfFields();j++)
if(ts.size()!=1)
{
std::vector<double> ts2(ts.size());
- std::transform(ts.begin(),ts.end(),ts2.begin(),std::bind2nd(std::plus<double>(),-timeReq));
- std::transform(ts2.begin(),ts2.end(),ts2.begin(),std::ptr_fun<double,double>(fabs));
- zeTimeId=std::distance(ts2.begin(),std::find_if(ts2.begin(),ts2.end(),std::bind2nd(std::less<double>(),1e-14)));
+ std::transform(ts.begin(),ts.end(),ts2.begin(),std::bind(std::plus<double>(),std::placeholders::_1,-timeReq));
+ std::transform(ts2.begin(),ts2.end(),ts2.begin(),[](double c) {return fabs(c);});
+ zeTimeId=std::distance(ts2.begin(),std::find_if(ts2.begin(),ts2.end(),std::bind(std::less<double>(),std::placeholders::_1,1e-14)));
}
//2nd chance
if(zeTimeId==ts.size())
/*!
* Does nothing ! It is not a bug
*/
-void MEDStdTimeReq::setNumberOfTS(int nbOfTS) const
+void MEDStdTimeReq::setNumberOfTS(int /*nbOfTS*/) const
{
}
#include <algorithm>
-vtkInformationKeyMacro(MEDUtilities,ELGA,Integer);
-vtkInformationKeyMacro(MEDUtilities,ELNO,Integer);
+vtkInformationKeyMacro(MEDUtilities,ELGA,Integer)
+vtkInformationKeyMacro(MEDUtilities,ELNO,Integer)
void ExportedTinyInfo::pushGaussAdditionnalInfo(int ct, int dim, const std::vector<double>& refCoo, const std::vector<double>& posInRefCoo)
{
#include "InterpKernelAutoPtr.hxx"
//vtkCxxRevisionMacro(vtkELNOFilter, "$Revision: 1.2.2.2 $");
-vtkStandardNewMacro(vtkELNOFilter);
+vtkStandardNewMacro(vtkELNOFilter)
vtkELNOFilter::vtkELNOFilter()
{
vtkUnstructuredGrid *usgIn(vtkUnstructuredGrid::SafeDownCast( input[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())));
vtkPolyData *pdOut(vtkPolyData::SafeDownCast(output->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())));
- vtkDataArray *array(this->GetInputArrayToProcess(0, input));
+ //vtkDataArray *array(this->GetInputArrayToProcess(0, input)); // todo: unused
vtkIdTypeArray* offsets(vtkIdTypeArray::SafeDownCast(this->GetInputArrayToProcess(0, input)));
if(usgIn == NULL || offsets == NULL || pdOut == NULL)
vtkIdType start(0);
for(vtkIdType cellId = 0; cellId < ncell; cellId++)
{
- vtkIdType offset(offsets->GetValue(cellId));
+ //vtkIdType offset(offsets->GetValue(cellId)); // todo: unused
int cellType(usgIn->GetCellType(cellId));
// a simple check to see if a scheme really exists for this cell type.
// should not happen if the cell type has not been modified.
for(vtkIdType cellId=0;cellId<nbCellsInput;cellId++)
{
vtkCell *cell(usgIn->GetCell(cellId));
- vtkIdType nbPoints(cell->GetNumberOfPoints()),offset(offsetPtr[cellId]);
+ vtkIdType nbPoints(cell->GetNumberOfPoints())/*,offset(offsetPtr[cellId])*/; // todo: offset is unused
for(vtkIdType j=0;j<nbPoints;j++,zeId++)
newArray->SetTuple(zeId,offsetPtr[cellId]+j,data);
}
{
public:
static vtkELNOFilter *New();
- vtkTypeMacro(vtkELNOFilter,vtkQuadraturePointsGenerator);
+ vtkTypeMacro(vtkELNOFilter,vtkQuadraturePointsGenerator)
void PrintSelf(ostream& os, vtkIndent indent);
// Description :
#include <map>
-vtkStandardNewMacro(vtkELNOMeshFilter);
+vtkStandardNewMacro(vtkELNOMeshFilter)
vtkELNOMeshFilter::vtkELNOMeshFilter():ShrinkFactor(0.9999)
{
{
}
-int vtkELNOMeshFilter::RequestData(vtkInformation *request,
+int vtkELNOMeshFilter::RequestData(vtkInformation * /*request*/,
vtkInformationVector **input, vtkInformationVector *output)
{
vtkUnstructuredGrid *usgIn = vtkUnstructuredGrid::SafeDownCast(
// now copy ELNO data. Start by verifying if it is possible to
// shallow copy the array.
- vtkInformation *info(usgIn->GetInformation());
+ //vtkInformation *info(usgIn->GetInformation()); // todo: unused
//
vtkIdType nVerts(shrinked->GetNumberOfPoints()),ncell(usgIn->GetNumberOfCells());
// first loop through all cells to check if a shallow copy is possible
for(vtkIdType cellId=0;cellId<ncell;cellId++)
{
vtkCell *cell(shrinked->GetCell(cellId));
- vtkIdType nbPoints(cell->GetNumberOfPoints()),offset(offsetPtr[cellId]);
+ vtkIdType nbPoints(cell->GetNumberOfPoints())/*,offset(offsetPtr[cellId])*/; // todo: offset is unused
for(vtkIdType j=0;j<nbPoints;j++,zeId++)
newArray->SetTuple(zeId,offsetPtr[cellId]+j,data);
}
{
public:
static vtkELNOMeshFilter *New();
- vtkTypeMacro(vtkELNOMeshFilter,vtkUnstructuredGridAlgorithm);
+ vtkTypeMacro(vtkELNOMeshFilter,vtkUnstructuredGridAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent);
vtkGetMacro(ShrinkFactor, double);
//vtkCxxRevisionMacro(vtkELNOSurfaceFilter, "$Revision$")
//;
vtkStandardNewMacro(vtkELNOSurfaceFilter)
-;
vtkELNOSurfaceFilter::vtkELNOSurfaceFilter()
{
{
}
-int vtkELNOSurfaceFilter::RequestData(vtkInformation *request, vtkInformationVector **input, vtkInformationVector *output)
+int vtkELNOSurfaceFilter::RequestData(vtkInformation * /*request*/, vtkInformationVector **input, vtkInformationVector *output)
{
vtkUnstructuredGrid *usgIn=vtkUnstructuredGrid::SafeDownCast(
input[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT()));
{
public:
static vtkELNOSurfaceFilter *New();
- vtkTypeMacro(vtkELNOSurfaceFilter,vtkUnstructuredGridAlgorithm);
+ vtkTypeMacro(vtkELNOSurfaceFilter,vtkUnstructuredGridAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent);
protected:
#include <map>
#include <deque>
-vtkStandardNewMacro(vtkExtractCellType);
+vtkStandardNewMacro(vtkExtractCellType)
-vtkCxxSetObjectMacro(vtkExtractCellType, SIL, vtkMutableDirectedGraph);
+vtkCxxSetObjectMacro(vtkExtractCellType, SIL, vtkMutableDirectedGraph)
///////////////////
+/// \cond PRIVATE
class ExtractCellTypeStatus
{
public:
const ExtractCellTypeStatus& elt(getEntry(entry));
return elt.getStatus();
}
- catch (INTERP_KERNEL::Exception e)
+ catch (INTERP_KERNEL::Exception& /*e*/)
{
//std::cerr << vtkDebugMacro"Exception has been thrown in vtkExtractCellType::vtkExtractCellTypeInternal::getStatusOfEntryStr : " << e.what() << std::endl;
return false;
const ExtractCellTypeStatus& elt(getEntry(entry));
elt.setStatus(status);
}
- catch (INTERP_KERNEL::Exception e)
+ catch (INTERP_KERNEL::Exception& /*e*/)
{
//std::cerr << "Exception has been thrown in vtkExtractCellType::vtkExtractCellTypeInternal::setStatusOfEntryStr : " << e.what() << std::endl;
}
{
vtkIdType InfoGeoType(sil->AddChild(root,childEdge));
names.push_back(_type_str);
- vtkIdType InfoVTKID(sil->AddChild(InfoGeoType,childEdge));
+ /*vtkIdType InfoVTKID(*/sil->AddChild(InfoGeoType,childEdge)/*)*/; // todo: unused
std::ostringstream oss; oss << _vtkt;
names.push_back(oss.str());
}
+/// \endcond PRIVATE
////////////////////
}
}
-int vtkExtractCellType::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
try
{
output->ShallowCopy(input);
vtkSmartPointer<vtkThreshold> thres(vtkSmartPointer<vtkThreshold>::New());
thres->SetInputData(output);
- vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData());
- vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData());
+ //vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData()); // todo: unused
+ //vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData()); // todo: unused
//
double vMin(insideOut==0?1.:0.),vMax(insideOut==0?2.:1.);
thres->ThresholdBetween(vMin,vMax);
return zeComputedOutput;
}
-int vtkExtractCellType::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
try
{
//std::cerr << "########################################## vtkExtractCellType::RequestData ##########################################" << std::endl;
vtkInformation* inputInfo=inputVector[0]->GetInformationObject(0);
vtkDataSet *input(vtkDataSet::SafeDownCast(inputInfo->Get(vtkDataObject::DATA_OBJECT())));
- vtkInformation *info(input->GetInformation());
+ //vtkInformation *info(input->GetInformation()); // todo: unused
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkDataSet *output(vtkDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
std::vector<int> idsToKeep(this->Internal->getIdsToKeep());
vtkExtractCellType();
~vtkExtractCellType();
- int RequestInformation(vtkInformation *request,
+ int RequestInformation(vtkInformation * request,
vtkInformationVector **inputVector, vtkInformationVector *outputVector);
- int RequestData(vtkInformation *request, vtkInformationVector **inputVector,
+ int RequestData(vtkInformation * request, vtkInformationVector **inputVector,
vtkInformationVector *outputVector);
// Description:
// This SIL stores the structure of the mesh/groups/cell types
#include <map>
#include <deque>
-vtkStandardNewMacro(vtkExtractGroup);
+vtkStandardNewMacro(vtkExtractGroup)
class vtkExtractGroup::vtkExtractGroupInternal : public ExtractGroupInternal
{
}
}
-int vtkExtractGroup::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractGroup::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector */*outputVector*/)
{
// vtkUnstructuredGridAlgorithm::RequestInformation(request,inputVector,outputVector);
try
{
// std::cerr << "########################################## vtkExtractGroup::RequestInformation ##########################################" << std::endl;
// request->Print(cout);
- vtkInformation *outInfo(outputVector->GetInformationObject(0));
+ //vtkInformation *outInfo(outputVector->GetInformationObject(0)); // todo: unused
vtkInformation *inputInfo(inputVector[0]->GetInformationObject(0));
if(!ExtractGroupInternal::IndependantIsInformationOK(vtkMEDReader::META_DATA(),inputInfo))
{
vtkDataSet *output(input->NewInstance());
output->ShallowCopy(input);
thres->SetInputData(output);
- vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData());
- vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData());
+ //vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData()); // todo: unused
+ //vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData()); // todo: unused
//
double vMin(insideOut==0?1.:0.),vMax(insideOut==0?2.:1.);
thres->ThresholdBetween(vMin,vMax);
private:
vtkDataSet *_ds;
};
-int vtkExtractGroup::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractGroup::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
try
{
return 0;
}
vtkDataSet *input(vtkDataSet::SafeDownCast(inputMB->GetBlock(0)));
- vtkInformation *info(input->GetInformation());
+ //vtkInformation *info(input->GetInformation()); // todo: unused
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkMultiBlockDataSet *output(vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
std::set<int> idsToKeep(this->Internal->getIdsToKeep());
vtkExtractGroup();
~vtkExtractGroup();
- int RequestInformation(vtkInformation *request,
+ int RequestInformation(vtkInformation * request,
vtkInformationVector **inputVector, vtkInformationVector *outputVector);
- int RequestData(vtkInformation *request, vtkInformationVector **inputVector,
+ int RequestData(vtkInformation * request, vtkInformationVector **inputVector,
vtkInformationVector *outputVector);
// Description:
{
};
-vtkStandardNewMacro(vtkGroupAsMultiBlock);
+vtkStandardNewMacro(vtkGroupAsMultiBlock)
vtkGroupAsMultiBlock::vtkGroupAsMultiBlock():Internal(new ExtractGroupInternal)
{
delete this->Internal;
}
-int vtkGroupAsMultiBlock::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGroupAsMultiBlock::RequestInformation(vtkInformation */*request*/, vtkInformationVector **inputVector, vtkInformationVector */*outputVector*/)
{
- vtkInformation *outInfo(outputVector->GetInformationObject(0));
+ //vtkInformation *outInfo(outputVector->GetInformationObject(0)); // todo: unused
vtkInformation *inputInfo(inputVector[0]->GetInformationObject(0));
if(!ExtractGroupInternal::IndependantIsInformationOK(vtkMEDReader::META_DATA(),inputInfo))
{
return 0;
}
vtkDataSet *input(vtkDataSet::SafeDownCast(inputMB->GetBlock(0)));
- vtkInformation *info(input->GetInformation());
+ //vtkInformation *info(input->GetInformation()); // todo: unused
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkMultiBlockDataSet *output(vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
if(!output)
{
public:
static vtkGroupAsMultiBlock *New();
- vtkTypeMacro(vtkGroupAsMultiBlock, vtkMultiBlockDataSetAlgorithm);
+ vtkTypeMacro(vtkGroupAsMultiBlock, vtkMultiBlockDataSetAlgorithm)
protected:
vtkGroupAsMultiBlock();
~vtkGroupAsMultiBlock();
- int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
+ int RequestInformation(vtkInformation * request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
private:
ExtractGroupInternal *Internal;
{
};
-vtkStandardNewMacro(vtkGroupsNames);
+vtkStandardNewMacro(vtkGroupsNames)
vtkGroupsNames::vtkGroupsNames():Internal(new ExtractGroupInternal)
{
delete this->Internal;
}
-int vtkGroupsNames::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGroupsNames::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector */*outputVector*/)
{
- vtkInformation *outInfo(outputVector->GetInformationObject(0));
+ //vtkInformation *outInfo(outputVector->GetInformationObject(0)); // todo: unused
vtkInformation *inputInfo(inputVector[0]->GetInformationObject(0));
if(!ExtractGroupInternal::IndependantIsInformationOK(vtkMEDReader::META_DATA(),inputInfo))
{
vtkErrorMacro("vtkGroupsNames::RequestData : input is neither a DataSet nor a MultiblockDataSet !");
return 0;
}
- vtkInformation *info(input->GetInformation());
+ //vtkInformation *info(input->GetInformation()); // todo: unused
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkTable *output(vtkTable::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
if(!output)
{
public:
static vtkGroupsNames *New();
- vtkTypeMacro(vtkGroupsNames, vtkTableAlgorithm);
+ vtkTypeMacro(vtkGroupsNames, vtkTableAlgorithm)
protected:
vtkGroupsNames();
~vtkGroupsNames();
- int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
+ int RequestInformation(vtkInformation * request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
private:
ExtractGroupInternal *Internal;
class VTK_EXPORT vtkInformationGaussDoubleVectorKey : public vtkInformationDoubleVectorKey
{
public:
- vtkTypeMacro(vtkInformationGaussDoubleVectorKey, vtkInformationDoubleVectorKey);
- void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE{}
+ vtkTypeMacro(vtkInformationGaussDoubleVectorKey, vtkInformationDoubleVectorKey)
+ void PrintSelf(ostream& /*os*/, vtkIndent /*indent*/) VTK_OVERRIDE{}
vtkInformationGaussDoubleVectorKey(const char* name, const char* location,
int length = -1) : vtkInformationDoubleVectorKey(name, location, length) { }
* Simply shallow copies the key from fromInfo to toInfo.
* This is used by the pipeline to propagate this key downstream.
*/
- void CopyDefaultInformation(vtkInformation* request,
+ void CopyDefaultInformation(vtkInformation* /*request*/,
vtkInformation* fromInfo,
vtkInformation* toInfo) VTK_OVERRIDE
{
#include <vtkQuadratureSchemeDefinition.h>
//-----------------------------------------------------------------------------
-vtkStandardNewMacro(vtkMEDQuadraturePointsGenerator);
+vtkStandardNewMacro(vtkMEDQuadraturePointsGenerator)
//-----------------------------------------------------------------------------
vtkMEDQuadraturePointsGenerator::vtkMEDQuadraturePointsGenerator()
class VTK_EXPORT vtkMEDQuadraturePointsGenerator : public vtkQuadraturePointsGenerator
{
public:
- vtkTypeMacro(vtkMEDQuadraturePointsGenerator,vtkQuadraturePointsGenerator);
+ vtkTypeMacro(vtkMEDQuadraturePointsGenerator,vtkQuadraturePointsGenerator)
static vtkMEDQuadraturePointsGenerator *New();
protected:
unsigned char FirstCall0;
};
-vtkStandardNewMacro(vtkMEDReader);
+vtkStandardNewMacro(vtkMEDReader)
// vtkInformationKeyMacro(vtkMEDReader, META_DATA, DataObjectMetaData); // Here we need to customize vtkMEDReader::META_DATA method
// start of overload of vtkInformationKeyMacro
return const_cast<char *>(this->Internal->FileName.c_str());
}
-int vtkMEDReader::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkMEDReader::RequestInformation(vtkInformation *request, vtkInformationVector ** /*inputVector*/, vtkInformationVector *outputVector)
{
// std::cout << "########################################## vtkMEDReader::RequestInformation ##########################################" << std::endl;
if(!this->Internal)
return 1;
}
-int vtkMEDReader::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkMEDReader::RequestData(vtkInformation *request, vtkInformationVector ** /*inputVector*/, vtkInformationVector *outputVector)
{
// std::cout << "########################################## vtkMEDReader::RequestData ##########################################" << std::endl;
if(!this->Internal)
// request->Print(cout);
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkMultiBlockDataSet *output(vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
- bool isUpdated(false);
+ //bool isUpdated(false); // todo: unused
double reqTS(0.);
if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))
reqTS=outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
return (int)this->Internal->TK.getTimesFlagArray()[pos].first;
}
-void vtkMEDReader::UpdateSIL(vtkInformation* request, vtkInformation *info)
+void vtkMEDReader::UpdateSIL(vtkInformation* /*request*/, vtkInformation * /*info*/)
{
if(!this->Internal)
return;
void operator=(const vtkMEDReader&); // Not implemented.
public:
static vtkMEDReader *New();
- vtkTypeMacro(vtkMEDReader, vtkMultiBlockDataSetAlgorithm);
+ vtkTypeMacro(vtkMEDReader, vtkMultiBlockDataSetAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent);
virtual void SetFileName(const char*);
virtual char *GetFileName();
virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
private:
- void UpdateSIL(vtkInformation *request, vtkInformation *info);
+ void UpdateSIL(vtkInformation * request, vtkInformation * info);
virtual double PublishTimeStepsIfNeeded(vtkInformation*, bool& isUpdated);
virtual void FillMultiBlockDataSetInstance(vtkMultiBlockDataSet *output, double reqTS, ExportedTinyInfo *internalInfo=0);
vtkDataSet *RetrieveDataSetAtTime(double reqTS, ExportedTinyInfo *internalInfo);
#include "vtkMEDReader.h"
-vtkStandardNewMacro(vtkPVMetaDataInformation);
-vtkCxxSetObjectMacro(vtkPVMetaDataInformation, InformationData, vtkDataObject);
+vtkStandardNewMacro(vtkPVMetaDataInformation)
+vtkCxxSetObjectMacro(vtkPVMetaDataInformation, InformationData, vtkDataObject)
//----------------------------------------------------------------------------
vtkPVMetaDataInformation::vtkPVMetaDataInformation()
{
public:
static vtkPVMetaDataInformation* New();
- vtkTypeMacro(vtkPVMetaDataInformation, vtkPVInformation);
+ vtkTypeMacro(vtkPVMetaDataInformation, vtkPVInformation)
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
#include "vtkCellData.h"
#include "vtkPointData.h"
-vtkStandardNewMacro(vtkUgSelectCellIds);
+vtkStandardNewMacro(vtkUgSelectCellIds)
void vtkUgSelectCellIds::SetIds(vtkIdTypeArray *ids)
{
{
public:
static vtkUgSelectCellIds* New();
- vtkTypeMacro(vtkUgSelectCellIds, vtkUnstructuredGridAlgorithm);
+ vtkTypeMacro(vtkUgSelectCellIds, vtkUnstructuredGridAlgorithm)
void SetIds(vtkIdTypeArray *ids);
vtkUgSelectCellIds() = default;
~vtkUgSelectCellIds() override = default;
#include <QHeaderView>
//-----------------------------------------------------------------------------
pqAbstractFieldsWidget::pqAbstractFieldsWidget(
- vtkSMProxy *smproxy, vtkSMProperty *smproperty, QWidget *parentObject)
+ vtkSMProxy *smproxy, vtkSMProperty * /*smproperty*/, QWidget *parentObject)
: Superclass(smproxy, parentObject)
{
this->NItems = 0;
}
//-----------------------------------------------------------------------------
-void pqAbstractFieldsWidget::onItemChanged(QTreeWidgetItem* item, int column) const
+void pqAbstractFieldsWidget::onItemChanged(QTreeWidgetItem* /*item*/, int column) const
{
if (column != 0)
{
Q_PROPERTY(QList< QList< QVariant> > fieldsDomain READ getFields WRITE setFieldsDomain)
public:
pqAbstractFieldsWidget(
- vtkSMProxy *smproxy, vtkSMProperty *smproperty, QWidget *parentObject = 0);
+ vtkSMProxy *smproxy, vtkSMProperty * smproperty, QWidget *parentObject = 0);
virtual ~pqAbstractFieldsWidget();
// Description
virtual void onItemChanged(QTreeWidgetItem* itemOrig, int column) const;
private:
- Q_DISABLE_COPY(pqAbstractFieldsWidget);
+ Q_DISABLE_COPY(pqAbstractFieldsWidget)
};
#endif
void loadTreeWidgetItems();
private:
- Q_DISABLE_COPY(pqExtractGroupFieldsWidget);
+ Q_DISABLE_COPY(pqExtractGroupFieldsWidget)
};
#endif
void updateChecks();
private:
- Q_DISABLE_COPY(pqMEDReaderFieldsWidget);
+ Q_DISABLE_COPY(pqMEDReaderFieldsWidget)
};
#endif
void modeEnabled(bool enable);
private:
- Q_DISABLE_COPY(pqMEDReaderTimeModeWidget);
+ Q_DISABLE_COPY(pqMEDReaderTimeModeWidget)
// Description
// Qt property value
vtkIdType CachedTsId;
private:
- Q_DISABLE_COPY(pqMEDReaderTimesFlagsWidget);
+ Q_DISABLE_COPY(pqMEDReaderTimesFlagsWidget)
};
#endif
virtual ~pqMEDReaderVectorsWidget();
private:
- Q_DISABLE_COPY(pqMEDReaderVectorsWidget);
+ Q_DISABLE_COPY(pqMEDReaderVectorsWidget)
class pqInternals;
pqInternals* Internals;
int nbCells(ca->GetNumberOfCells());
if(nbCells==0)
return 0;
- vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+ //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
const vtkIdType *conn(ca->GetData()->GetPointer(0));
for(int i=0;i<nbCells;i++)
{
int nbCells(ca->GetNumberOfCells());
if(nbCells==0)
return 0;
- vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+ //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
const vtkIdType *conn(ca->GetData()->GetPointer(0));
ids=DataArrayIdType::New() ; ids->alloc(0,1);
for(int i=0;i<nbCells;i++)
MCAuto<MEDCouplingUMesh> mesh(mf.getMesh());
mesh->setName(mfd->getMeshes()->getMeshAtPos(0)->getName());
MCAuto<DataArrayIdType> o2n(mesh->sortCellsInMEDFileFrmt());
- const DataArrayIdType *o2nPtr(o2n);
+ //const DataArrayIdType *o2nPtr(o2n); // todo: unused
MCAuto<DataArrayIdType> n2o;
mmu->setMeshAtLevel(meshDimRel,mesh);
const DataArrayIdType *n2oPtr(0);
if(!arr)
continue;
const char *name(arr->GetName());
- int nbCompo(arr->GetNumberOfComponents());
- vtkIdType nbTuples(arr->GetNumberOfTuples());
+ //int nbCompo(arr->GetNumberOfComponents()); // todo: unused
+ //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
if(part)
mcarr=mcarr->selectByTupleId(part->begin(),part->end());
if(!arr)
continue;
const char *name(arr->GetName());
- int nbCompo(arr->GetNumberOfComponents());
- vtkIdType nbTuples(arr->GetNumberOfTuples());
+ //int nbCompo(arr->GetNumberOfComponents()); // todo: unused
+ //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
mcarr=mcarr->selectByTupleIdSafeSlice(bg,end,1);
mcarr->setName(name);
vtkCellArray *ca(ds->GetCells());
if(!ca)
return ;
- vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries());
- vtkIdType *caPtr(ca->GetData()->GetPointer(0));
+ //vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries()); // todo: unused
+ //vtkIdType *caPtr(ca->GetData()->GetPointer(0)); // todo: unused
vtkUnsignedCharArray *ct(ds->GetCellTypesArray());
if(!ct)
throw MZCException("ConvertFromUnstructuredGrid : internal error");
vtkIdTypeArray *cla(ds->GetCellLocationsArray());
- const vtkIdType *claPtr(cla->GetPointer(0));
+ //const vtkIdType *claPtr(cla->GetPointer(0)); // todo: unused
if(!cla)
throw MZCException("ConvertFromUnstructuredGrid : internal error 2");
const unsigned char *ctPtr(ct->GetPointer(0));
}
}
}
- int dummy(0);
MCAuto<DataArrayInt> levs(lev->getDifferentValues());
std::vector< MicroField > ms;
- vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations());
+ //vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations()); // todo: unused
for(const int *curLev=levs->begin();curLev!=levs->end();curLev++)
{
MCAuto<MEDCouplingUMesh> m0(MEDCouplingUMesh::New("",*curLev));
{
public:
MZCException(const std::string& s):_reason(s) { }
- virtual const char *what() const throw() { return _reason.c_str(); }
- virtual ~MZCException() throw() { }
+ virtual const char *what() const noexcept { return _reason.c_str(); }
+ virtual ~MZCException() noexcept { }
private:
std::string _reason;
};
#include <map>
#include <sstream>
-vtkStandardNewMacro(vtkMEDWriter);
+vtkStandardNewMacro(vtkMEDWriter)
using MEDCoupling::MCAuto;
using MEDCoupling::MEDFileData;
"There is an internal error ! The tree on server side has not the expected look !");
vtkAdjacentVertexIterator* it0(vtkAdjacentVertexIterator::New());
sil->GetAdjacentVertices(id0, it0);
- int kk(0), ll(0);
while (it0->HasNext())
{
vtkIdType id1(it0->Next());
vtkMEDWriter::~vtkMEDWriter() {}
int vtkMEDWriter::RequestInformation(
- vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
+ vtkInformation* /*request*/, vtkInformationVector** inputVector, vtkInformationVector* /*outputVector*/)
{
// std::cerr << "########################################## vtkMEDWriter::RequestInformation
// ########################################## " << (const char *) this->FileName << std::endl;
vtkMEDWriter();
~vtkMEDWriter();
- int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);
+ int RequestInformation(vtkInformation * request, vtkInformationVector **inputVector, vtkInformationVector * outputVector);
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);
int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
private:
#include <algorithm>
//----------------------------------------------
-vtkStandardNewMacro(vtkParaGEOMCorbaSource);
+vtkStandardNewMacro(vtkParaGEOMCorbaSource)
void *vtkParaGEOMCorbaSource::Orb=0;
}
//----------------------------------------------
-int vtkParaGEOMCorbaSource::RequestData(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outputVector) {
+int vtkParaGEOMCorbaSource::RequestData(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outputVector) {
vtkInformation *outInfo=outputVector->GetInformationObject(0);
vtkMultiBlockDataSet *ret0=vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
- double reqTS = 0;
+ /*double reqTS = 0; // todo: unused
if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))
reqTS = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
+ */
try {
//Client request on ORB.
CORBA::ORB_var *OrbC=(CORBA::ORB_var *)this->Orb;
class vtkParaGEOMCorbaSource : public vtkAlgorithm {
public:
static vtkParaGEOMCorbaSource* New();
- vtkTypeMacro(vtkParaGEOMCorbaSource, vtkAlgorithm);
+ vtkTypeMacro(vtkParaGEOMCorbaSource, vtkAlgorithm)
virtual void PrintSelf( ostream& os, vtkIndent indent );
const char *GetIORCorba();
void SetIORCorba(char *ior);
#include "ParaMEDCouplingCorbaServant.hh"
//
-vtkStandardNewMacro(vtkParaMEDCorbaSource);
+vtkStandardNewMacro(vtkParaMEDCorbaSource)
//vtkCxxRevisionMacro(vtkParaMEDCorbaSource,"$Revision$");
void *vtkParaMEDCorbaSource::Orb=0;
return 1;
}
-int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo)
+int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outInfo)
{
vtkInformation* myInfo=outInfo->GetInformationObject(0);
//myInfo->Set(vtkDataObject::DATA_TYPE_NAME(),"vtkUnstructuredGrid");
return 1;
}
-int vtkParaMEDCorbaSource::RequestData(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outputVector)
+int vtkParaMEDCorbaSource::RequestData(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outputVector)
{
vtkInformation *outInfo=outputVector->GetInformationObject(0);
//
catch(CORBA::Exception&) {
vtkErrorMacro("On fetching object error occurs");
}
+ return 0;
}
void vtkParaMEDCorbaSource::PrintSelf(ostream& os, vtkIndent indent)
SALOME_TYPES::ListOfDouble *bigD;
meshPtr->getSerialisationData(tinyI,bigD);
delete tinyI;
- if(bigD->length()!=nbOfNodes*spaceDim)
+ if((int)bigD->length()!=nbOfNodes*spaceDim)
vtkErrorWithObjectMacro(ret,"Internal error in ParaMEDCorba plugin : distant curvilinear mesh, mismatch between informations ! Internal error !");
for(int i=0;i<nbOfNodes;i++)
{
return i;
//2nd chance
std::vector<double>::iterator it=std::find_if(_time_label_per_field.begin(),_time_label_per_field.end(),
- std::bind2nd(std::greater<double>(),t));
+ std::bind(std::greater<double>(),std::placeholders::_1,t));
if(it!=_time_label_per_field.end() && it!=_time_label_per_field.end())
return std::distance(_time_label_per_field.begin(),it);
//
//
int spaceDim=(*tinyI)[1];
int nbOfNodes=(*tinyI)[2];
- int meshDim=(*tinyI)[5];
+ //int meshDim=(*tinyI)[5]; // todo: unused
int nbOfCells=(*tinyI)[6];
- int meshLength=(*tinyI)[7];
+ //int meshLength=(*tinyI)[7]; // todo: unused
std::string name((*tinyS)[0]);
//std::vector<std::string> compoNames(spaceDim);
//for(int i=0;i<spaceDim;i++)
#include <algorithm>
-vtkStandardNewMacro(vtkParaSMESHCorbaSource);
+vtkStandardNewMacro(vtkParaSMESHCorbaSource)
void *vtkParaSMESHCorbaSource::Orb=0;
}
//----------------------------------------------
-int vtkParaSMESHCorbaSource::RequestData(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outputVector) {
+int vtkParaSMESHCorbaSource::RequestData(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outputVector) {
vtkInformation *outInfo=outputVector->GetInformationObject(0);
vtkMultiBlockDataSet *ret0=vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
+ /* todo: unused
double reqTS = 0;
if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))
reqTS = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
-
+ */
try {
CORBA::ORB_var *OrbC=(CORBA::ORB_var *)this->Orb;
CORBA::Object_var obj=(*OrbC)->string_to_object(&IOR[0]);
class vtkParaSMESHCorbaSource: public vtkAlgorithm {
public:
static vtkParaSMESHCorbaSource* New();
- vtkTypeMacro(vtkParaSMESHCorbaSource, vtkAlgorithm);
+ vtkTypeMacro(vtkParaSMESHCorbaSource, vtkAlgorithm)
const char *GetIORCorba();
using namespace std;
// vtkCxxRevisionMacro(vtkScaleVectorFilter, "$Revision$");
-vtkStandardNewMacro(vtkScaleVectorFilter);
+vtkStandardNewMacro(vtkScaleVectorFilter)
vtkScaleVectorFilter::vtkScaleVectorFilter()
{
{
public:
static vtkScaleVectorFilter* New();
- vtkTypeMacro(vtkScaleVectorFilter, vtkPassInputTypeAlgorithm);
+ vtkTypeMacro(vtkScaleVectorFilter, vtkPassInputTypeAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
// Description :
#include <map>
#include <sstream>
-vtkStandardNewMacro(vtkSimpleMode);
+vtkStandardNewMacro(vtkSimpleMode)
static const char ZE_DISPLACEMENT_NAME1[] = "@@ForReal?@@";
: _reason(s)
{
}
- virtual const char* what() const throw() { return _reason.c_str(); }
- virtual ~MZCException() throw() {}
+ virtual const char* what() const noexcept { return _reason.c_str(); }
+ virtual ~MZCException() noexcept {}
private:
std::string _reason;
}
int vtkSimpleMode::RequestInformation(
- vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
+ vtkInformation* /*request*/, vtkInformationVector** /*inputVector*/, vtkInformationVector* /*outputVector*/)
{
// std::cerr << "########################################## vtkSimpleMode::RequestInformation
// ##########################################" << std::endl;
}
int vtkSimpleMode::RequestData(
- vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
+ vtkInformation* /*request*/, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
{
// std::cerr << "########################################## vtkSimpleMode::RequestData
// ##########################################" << std::endl;
continue;
double* arrPtr(arr2->GetPointer(0));
std::transform(arrPtr, arrPtr + nbCompo * nbTuples, arrPtr,
- std::bind2nd(std::multiplies<double>(), cos(AnimationTime * 2 * M_PI)));
+ std::bind(std::multiplies<double>(),std::placeholders::_1, cos(AnimationTime * 2 * M_PI)));
}
//
vtkDataArray* array = output->GetPointData()->GetArray(idx2);
{
public:
static vtkSimpleMode* New();
- vtkTypeMacro(vtkSimpleMode, vtkDataSetAlgorithm);
+ vtkTypeMacro(vtkSimpleMode, vtkDataSetAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
void SetInputArrayToProcess(
using MEDCoupling::ON_GAUSS_PT;
using MEDCoupling::MCAuto;
-vtkStandardNewMacro(vtkVoroGauss);
+vtkStandardNewMacro(vtkVoroGauss)
///////////////////
std::map<int,int> ComputeMapOfType()
vtkCellArray *ca(ds->GetCells());
if(!ca)
return ;
- vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries());
- vtkIdType *caPtr(ca->GetData()->GetPointer(0));
+ //vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries()); // todo: unused
+ //vtkIdType *caPtr(ca->GetData()->GetPointer(0)); // todo: unused
vtkUnsignedCharArray *ct(ds->GetCellTypesArray());
if(!ct)
throw INTERP_KERNEL::Exception("ConvertFromUnstructuredGrid : internal error");
vtkIdTypeArray *cla(ds->GetCellLocationsArray());
- const vtkIdType *claPtr(cla->GetPointer(0));
+ //const vtkIdType *claPtr(cla->GetPointer(0)); // todo: unused
if(!cla)
throw INTERP_KERNEL::Exception("ConvertFromUnstructuredGrid : internal error 2");
const unsigned char *ctPtr(ct->GetPointer(0));
}
}
MCAuto<DataArrayInt> levs(lev->getDifferentValues());
- vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations());
+ //vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations()); // todo: unused
for(const int *curLev=levs->begin();curLev!=levs->end();curLev++)
{
MCAuto<MEDCouplingUMesh> m0(MEDCouplingUMesh::New("",*curLev));
throw INTERP_KERNEL::Exception(oss.str());
}
int np(gaussLoc->GetNumberOfQuadraturePoints()),nbPtsPerCell((int)cm.getNumberOfNodes());
- const double *sfw(gaussLoc->GetShapeFunctionWeights()),*w(gaussLoc->GetQuadratureWeights());;
+ const double /**sfw(gaussLoc->GetShapeFunctionWeights()),*/*w(gaussLoc->GetQuadratureWeights());; // todo: sfw is unused
std::vector<double> refCoo,posInRefCoo,wCpp(w,w+np);
FillAdvInfoFrom((*it2).second,GaussAdvData,np,nbPtsPerCell,refCoo,posInRefCoo);
field->setGaussLocalizationOnType(*it,refCoo,posInRefCoo,wCpp);
{
}
-int vtkVoroGauss::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkVoroGauss::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector * /*outputVector*/)
{
//std::cerr << "########################################## vtkVoroGauss::RequestInformation ##########################################" << std::endl;
try
return 1;
}
-int vtkVoroGauss::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkVoroGauss::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
//std::cerr << "########################################## vtkVoroGauss::RequestData ##########################################" << std::endl;
try
ExtractInfo(inputVector[0],usgIn);
//
vtkSmartPointer<vtkUnstructuredGrid> ret(ComputeVoroGauss(usgIn,GaussAdvData));
- vtkInformation *inInfo(inputVector[0]->GetInformationObject(0));
+ //vtkInformation *inInfo(inputVector[0]->GetInformationObject(0)); // todo: unused
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkUnstructuredGrid *output(vtkUnstructuredGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
output->ShallowCopy(ret);
{
public:
static vtkVoroGauss* New();
- vtkTypeMacro(vtkVoroGauss, vtkUnstructuredGridAlgorithm);
+ vtkTypeMacro(vtkVoroGauss, vtkUnstructuredGridAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
protected:
* This method should be updated at each new version of ParaView with what is found in
* Qt/ApplicationComponents/pqParaViewBehaviors.cxx
*/
-void PVViewer_Behaviors::instanciateMinimalBehaviors(QMainWindow * desk)
+void PVViewer_Behaviors::instanciateMinimalBehaviors(QMainWindow * /*desk*/)
{
if (BehaviorLoadingLevel < 1)
{
\param fullSetup whether to instanciate all behaviors or just the minimal ones.
\return \c true if ParaView has been initialized successfully, otherwise false
*/
-bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * logWindow)
+bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * /*logWindow*/)
{
if ( ! MyCoreApp) {
// Obtain command-line arguments
// Create a new view proxy on the server
pqObjectBuilder* builder = pqApplicationCore::instance()->getObjectBuilder();
pqServer* active_serv = pqActiveObjects::instance().activeServer();
- pqView * pqview = builder->createView(QString("RenderView"), active_serv);
+ /*pqView * pqview = */builder->createView(QString("RenderView"), active_serv); // todo: unused
}
return multiv;
// set stdout to line buffering (aka C++ std::cout)
setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ);
char* salome_python=getenv("SALOME_PYTHON");
- size_t size_salome_python = sizeof(salome_python) / sizeof(salome_python[0]);
+ //size_t size_salome_python = sizeof(salome_python) / sizeof(salome_python[0]); // unused
if(salome_python != 0)
Py_SetProgramName(Py_DecodeLocale(salome_python, NULL));
*/
~PyLockWrapper()
{
- PyThreadState* _currState = PyGILState_GetThisThreadState();
#ifdef _DEBUG_
- if (_currState != _state)
+ if (PyGILState_GetThisThreadState() != _state)
{
std::cout << "!!!!!!!!! PyLockWrapper inconsistency - now entering infinite loop for debugging\n";
while(1);
// Nothing important, just a bunch of calls to some Py* functions!
PyRun_SimpleString("import base64");
- PyObject * sysmod = PyImport_AddModule("sys");
- PyObject* sysdict = PyModule_GetDict(sysmod);
- PyObject* tmp = PyDict_GetItemString(sysdict, "modules");
+ /*PyObject * sysmod = */PyImport_AddModule("sys"); // todo: unused
+ //PyObject* sysdict = PyModule_GetDict(sysmod); // todo: unused
+ //PyObject* tmp = PyDict_GetItemString(sysdict, "modules"); // todo: unused
}
std::cout << "Done with Py call" << std::endl;