VISU_CutLinesPL::VISU_CutLinesPL(){}
void VISU_CutLinesPL::ShallowCopy(VISU_PipeLine *thePipeLine){
- VISU_CutPlanesPL::ShallowCopy(thePipeLine);
if(VISU_CutLinesPL *aPipeLine = dynamic_cast<VISU_CutLinesPL*>(thePipeLine)){
SetOrientation(aPipeLine->GetPlaneOrientation(1),
aPipeLine->GetRotateX(1),aPipeLine->GetRotateY(1),1);
SetDefault();
if (!aPipeLine->IsDefault()) SetPosition(aPipeLine->GetPosition());
}
+ VISU_CutPlanesPL::ShallowCopy(thePipeLine);
}
void VISU_CutLinesPL::Init(){
}
void VISU_CutPlanesPL::ShallowCopy(VISU_PipeLine *thePipeLine){
- VISU_ScalarMapPL::ShallowCopy(thePipeLine);
if(VISU_CutPlanesPL *aPipeLine = dynamic_cast<VISU_CutPlanesPL*>(thePipeLine)){
SetOrientation(aPipeLine->GetPlaneOrientation(),
aPipeLine->GetRotateX(),aPipeLine->GetRotateY());
for (int i = 0, iend = GetNbParts(); i < iend; i++)
if(!aPipeLine->IsPartDefault(i)) SetPartPosition(i, aPipeLine->GetPartPosition(i));
}
+ VISU_ScalarMapPL::ShallowCopy(thePipeLine);
}
void VISU_CutPlanesPL::Init(){
}
void VISU_DeformedShapePL::ShallowCopy(VISU_PipeLine *thePipeLine){
- VISU_ScalarMapPL::ShallowCopy(thePipeLine);
if(VISU_DeformedShapePL *aPipeLine = dynamic_cast<VISU_DeformedShapePL*>(thePipeLine)){
SetScale(aPipeLine->GetScale());
}
+ VISU_ScalarMapPL::ShallowCopy(thePipeLine);
}
float VISU_DeformedShapePL::GetScaleFactor(vtkDataSet* theDataSet){
VISU_GaussPointsPL
::ShallowCopy(VISU_PipeLine *thePipeLine)
{
- Superclass::ShallowCopy(thePipeLine);
if(VISU_GaussPointsPL *aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine)){
SetGaussPtsIDMapper(aPipeLine->GetGaussPtsIDMapper());
SetMagnification(aPipeLine->GetMagnification());
SetMagnificationIncrement(aPipeLine->GetMagnificationIncrement());
SetAlphaThreshold(aPipeLine->GetAlphaThreshold());
- Init();
}
+ Superclass::ShallowCopy(thePipeLine);
}
myGeomFilter->SetInput( myFieldTransform->GetUnstructuredGridOutput() );
myPSMapper->SetInput( myGeomFilter->GetOutput() );
+
+ SetSourceRange();
}
//----------------------------------------------------------------------------
-void
+void
VISU_GaussPointsPL
-::Init()
+::Update()
{
- VISU_ScalarMapPL::Init();
-
GetSourceRange(mySourceScalarRange);
myDeltaScalarRange = mySourceScalarRange[1] - mySourceScalarRange[0];
vtkCellData* aCellData = aDataSet->GetCellData();
myScalarArray = aCellData->GetScalars();
-}
-
-//----------------------------------------------------------------------------
-void
-VISU_GaussPointsPL
-::Update()
-{
- VISU_ScalarMapPL::Update();
myPSMapper->SetLookupTable( myMapperTable );
- myPSMapper->SetScalarRange( myMapperTable->GetRange() );
+ myPSMapper->SetScalarRange( mySourceScalarRange );
+
+ VISU_ScalarMapPL::Update();
}
//----------------------------------------------------------------------------
void
Build();
- virtual
- void
- Init();
-
virtual
void
Update();
}
void VISU_IsoSurfacesPL::ShallowCopy(VISU_PipeLine *thePipeLine){
- VISU_ScalarMapPL::ShallowCopy(thePipeLine);
if(VISU_IsoSurfacesPL *aPipeLine = dynamic_cast<VISU_IsoSurfacesPL*>(thePipeLine)){
SetNbParts(aPipeLine->GetNbParts());
float aRange[2] = {aPipeLine->GetMin(), aPipeLine->GetMax()};
SetRange(aRange);
}
+ VISU_ScalarMapPL::ShallowCopy(thePipeLine);
}
int VISU_IsoSurfacesPL::GetNbParts() {
VISU_Plot3DPL::
ShallowCopy(VISU_PipeLine *thePipeLine)
{
- VISU_ScalarMapPL::ShallowCopy(thePipeLine);
if(VISU_Plot3DPL *aPipeLine = dynamic_cast<VISU_Plot3DPL*>(thePipeLine)){
SetOrientation (aPipeLine->GetPlaneOrientation(),
aPipeLine->GetRotateX(), aPipeLine->GetRotateY());
SetContourPrs( aPipeLine->GetIsContourPrs() );
SetNumberOfContours( aPipeLine->GetNumberOfContours() );
}
+ VISU_ScalarMapPL::ShallowCopy(thePipeLine);
}
VISU_CutPlanesPL::PlaneOrientation
#include "VISU_ScalarMapPL.hxx"
#include "VISU_PipeLineUtils.hxx"
+#include "SALOME_ExtractGeometry.h"
//============================================================================
VISU_ScalarMapPL
::VISU_ScalarMapPL()
{
- myFieldTransform = VISU_FieldTransform::New();
-
myMapperTable = VISU_LookupTable::New();
myMapperTable->SetScale(VTK_SCALE_LINEAR);
myMapperTable->SetHueRange(0.667,0.0);
myBarTable->SetHueRange(0.667,0.0);
myExtractor = VISU_Extractor::New();
+ myExtractor->SetInput(myExtractGeometry->GetOutput());
+
+ myFieldTransform = VISU_FieldTransform::New();
+ myFieldTransform->SetInput(myExtractor->GetOutput());
myIsShrinkable = true;
}
SetScalarMode(aPipeLine->GetScalarMode());
SetNbColors(aPipeLine->GetNbColors());
SetScaling(aPipeLine->GetScaling());
- Update();
}
Superclass::ShallowCopy(thePipeLine);
}
VISU_ScalarMapPL
::Init()
{
- //SetSourceRange();
+ SetSourceRange();
}
void
VISU_ScalarMapPL
::Build()
{
- myExtractor->SetInput(GetInput2());
- myFieldTransform->SetInput(myExtractor->GetOutput());
myMapper->SetInput(DoHook());
Update();
}
}
void VISU_StreamLinesPL::ShallowCopy(VISU_PipeLine *thePipeLine){
- VISU_DeformedShapePL::ShallowCopy(thePipeLine);
- if(VISU_StreamLinesPL *aPipeLine = dynamic_cast<VISU_StreamLinesPL*>(thePipeLine))
+ if(VISU_StreamLinesPL *aPipeLine = dynamic_cast<VISU_StreamLinesPL*>(thePipeLine)){
SetParams(aPipeLine->GetIntegrationStep(),
aPipeLine->GetPropagationTime(),
aPipeLine->GetStepLength(),
aPipeLine->GetSource(),
aPipeLine->GetUsedPoints(),
aPipeLine->GetDirection());
+ }
+ VISU_DeformedShapePL::ShallowCopy(thePipeLine);
}
}
void VISU_VectorsPL::ShallowCopy(VISU_PipeLine *thePipeLine){
- VISU_DeformedShapePL::ShallowCopy(thePipeLine);
if(VISU_VectorsPL *aPipeLine = dynamic_cast<VISU_VectorsPL*>(thePipeLine)){
SetGlyphType(aPipeLine->GetGlyphType());
SetGlyphPos(aPipeLine->GetGlyphPos());
}
+ VISU_DeformedShapePL::ShallowCopy(thePipeLine);
}