typedef vtkSmartPointer<VISU_MergeFilter> PMergeFilter;
typedef vtkSmartPointer<VISU_CommonCellsFilter> PCommonCellsFilter;
- struct TCommonCellsFilterHolder;
- typedef MED::SharedPtr<TCommonCellsFilterHolder> PCommonCellsFilterHolder;
-
-
//---------------------------------------------------------------
typedef vtkSmartPointer<vtkPolyData> PPolyData;
typedef vtkSmartPointer<VISU_AppendPolyData> PAppendPolyData;
/*!
This container allow to combine other VTK representation into single one.
*/
- class VISU_CONVERTOR_EXPORT TCommonCellsFilterHolder: public virtual TMemoryCheckIDMapper
- {
- protected:
- mutable PCommonCellsFilter myFilter;
- mutable PMergeFilter myMergeFilter;
- public:
- TCommonCellsFilterHolder();
-
- //! This method allow to create corresponding VTK filter by demand (not at once)
- const PCommonCellsFilter&
- GetFilter() const;
-
- //! Reimplement the TNamedIDMapper::GetUnstructuredGridOutput
- virtual
- vtkUnstructuredGrid*
- GetUnstructuredGridOutput();
-
- virtual
- unsigned long int
- GetMemorySize();
- };
-
//---------------------------------------------------------------
//! Define a container for VTK representation
/*!
_PTR(SObject) myObject;
};
-class VisuGUI_TableWidget : public QWidget
+class VISU_GUITOOLS_EXPORT VisuGUI_TableWidget : public QWidget
{
Q_OBJECT
public:
Qt::Orientation myOrientation;
};
-class NumDelegateItem: public QItemDelegate
+class VISU_GUITOOLS_EXPORT NumDelegateItem: public QItemDelegate
{
public:
enum NumValidator{ NV_Int, NV_Real };
vtkFloatingPointType theSource);
//! Checks whether the scalar range is the same or not
- bool
+ bool VISU_PIPELINE_EXPORT
CheckIsSameRange(vtkFloatingPointType* theTarget,
vtkFloatingPointType* theSource);
//! Customizes vtkMapper::ShallowCopy
- void
+ void VISU_PIPELINE_EXPORT
CopyMapper(vtkMapper* theTarget,
vtkMapper* theSource,
bool theIsCopyInput);
bool theIsCopyInput);
//! Customizes vtkPolyDataMapper::ShallowCopy
- void
+ void VISU_PIPELINE_EXPORT
CopyPolyDataMapper(vtkPolyDataMapper* theTarget,
vtkPolyDataMapper* theSource,
bool theIsCopyInput);
//! Customizes VISU_OpenGLPointSpriteMapper::ShallowCopy
- void
+ void VISU_PIPELINE_EXPORT
CopyPointSpriteDataMapper(VISU_OpenGLPointSpriteMapper* theTarget,
VISU_OpenGLPointSpriteMapper* theSource,
bool theIsCopyInput);
//----------------------------------------------------------------------------
- void
+ void VISU_PIPELINE_EXPORT
ComputeBoundsParam(vtkDataSet* theDataSet,
vtkFloatingPointType theDirection[3],
vtkFloatingPointType theMinPnt[3],
//----------------------------------------------------------------------------
- void
+ void VISU_PIPELINE_EXPORT
DistanceToPosition(vtkDataSet* theDataSet,
vtkFloatingPointType theDirection[3],
vtkFloatingPointType theDist,
//----------------------------------------------------------------------------
- void
+ void VISU_PIPELINE_EXPORT
PositionToDistance(vtkDataSet* theDataSet,
vtkFloatingPointType theDirection[3],
vtkFloatingPointType thePos[3],
{
SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
if (aView == NULL) return;
- if (!myCutLines) return;
+ if (!(bool)myCutLines) return;
if (myPreviewActor != 0) return;
storeToPrsObject(myCutLines);
}
SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
if (aView) {
- if (theUpdate && myPreviewCheck->isChecked() && myCutLines) {
+ if (theUpdate && myPreviewCheck->isChecked() && (bool)myCutLines) {
deletePlanes();
createPlanes();
}
myCutLines->SetDisplacement(myPosSpn->value());
SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
if (aView) {
- if (theUpdate && myPreviewCheck->isChecked() && myCutLines) {
+ if (theUpdate && myPreviewCheck->isChecked() && (bool)myCutLines) {
deletePlanes();
createPlanes();
}
void VisuGUI_CutLinesDlg::onRotation (double theValue)
{
- if (!myCutLines) return;
+ if (!(bool)myCutLines) return;
SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
if (aView) {
if (myPreviewCheck->isChecked()) {
void VisuGUI_CutLinesDlg::onPlanePos (const QString& theValue)
{
- if (!myCutLines) return;
+ if (!(bool)myCutLines) return;
SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
if (aView) {
if (myPreviewCheck->isChecked()) {
void VisuGUI_CutPlanesPane::createPlanes()
{
if (VISU::GetActiveViewWindow<SVTK_ViewWindow>() == NULL) return;
- if (!myCutPlanes) return;
+ if (!(bool)myCutPlanes) return;
if (myPreviewActor != 0) return;
vtkDataSet* aDataSet = myCutPlanes->GetSpecificPL()->GetWarpVectorOutput();
*/
void VisuGUI_CutPlanesPane::DrawTable()
{
- if (!myCutPlanes) return;
+ if (!(bool)myCutPlanes) return;
if (!hasInit) return;
int aNbRows = myPosTable->rowCount();
void VisuGUI_CutPlanesPane::onRotation (double theValue)
{
- if (!myCutPlanes) return;
+ if (!(bool)myCutPlanes) return;
if (myPreviewCheck->isChecked()) {
if (SVTK_ViewWindow* vf = VISU::GetActiveViewWindow<SVTK_ViewWindow>()) {
myCutPlanes->SetOrientation(getOrientaion(),getRotation1()*PI/180.,getRotation2()*PI/180.);