const VISU::TEntity& theEntity,
const std::string& theFieldName,
int theStampsNum) = 0;
-
+
+ virtual
+ VISU::PProfile
+ GetProfile(const std::string& theMeshName,
+ const VISU::TEntity& theEntity,
+ const std::string& theFieldName,
+ int theStampsNum) = 0;
+
virtual
TOutput*
GetTimeStampOnGaussPts(const std::string& theMeshName,
return aSource.GetPointer();
}
+//---------------------------------------------------------------
+VISU::PProfile
+VISU_Convertor_impl::GetProfile(const std::string& theMeshName,
+ const VISU::TEntity& theEntity,
+ const std::string& theFieldName,
+ int theStampsNum)
+{
+ GetTimeStampOnMesh(theMeshName, theEntity, theFieldName, theStampsNum);
+ TFindTimeStamp aFindTimeStamp = FindTimeStamp(theMeshName,
+ theEntity,
+ theFieldName,
+ theStampsNum);
+ PValForTimeImpl aValForTime = boost::get<4>(aFindTimeStamp);
+ PProfileImpl aProfile = aValForTime->myProfile;
+ return aProfile;
+}
//---------------------------------------------------------------
VISU_Convertor::TOutput*
const std::string& theFieldName,
int theStampsNum);
virtual
+ VISU::PProfile
+ GetProfile(const std::string& theMeshName,
+ const VISU::TEntity& theEntity,
+ const std::string& theFieldName,
+ int theStampsNum);
+
+ virtual
TOutput*
GetTimeStampOnGaussPts(const std::string& theMeshName,
const VISU::TEntity& theEntity,
//----------------------------------------------------------------------------
int VISU_Actor::GetNodeObjId(int theVtkID){
- if ( myIsShrunk )
- return myShrinkFilter->GetNodeObjId(theVtkID);
- return theVtkID;
+ vtkIdType aID;
+ //
+ aID=theVtkID;
+ if (myIsShrunk) {
+ aID= myShrinkFilter->GetNodeObjId(theVtkID);
+ }
+ if (myPipeLine) {
+ aID=myPipeLine->GetNodeObjID(aID);
+ }
+ return aID;
}
+//----------------------------------------------------------------------------
int VISU_Actor::GetElemObjId(int theVtkID){
- return myGeomFilter->GetElemObjId(theVtkID);
+ vtkIdType aID;
+ //
+ aID=theVtkID;
+
+ if (myIsShrunk) {
+ aID= myShrinkFilter->GetElemObjId(theVtkID);
+ }
+ if (myPipeLine) {
+ aID=myPipeLine->GetElemObjID(aID);
+ }
+ return aID;
}
return false;
}
+
+vtkIdType VISU_PipeLine::GetNodeObjID(vtkIdType theVtkID)
+{
+ return myExtractGeometry->GetNodeObjId(theVtkID);
+}
+
+vtkIdType VISU_PipeLine::GetElemObjID(vtkIdType theVtkID)
+{
+ return myExtractGeometry->GetElemObjId(theVtkID);
+}
bool IsShrinkable() { return myIsShrinkable; }
+ virtual vtkIdType GetNodeObjID(vtkIdType theVtkID);
+ virtual vtkIdType GetElemObjID(vtkIdType theVtkID);
+
protected:
VISU_PipeLine();
VISU_PipeLine(const VISU_PipeLine&);
//SetSourceRange();
}
+void VISU_ScalarMapPL::SetProfile(const VISU::PProfile& theProfile)
+{
+ myProfile=theProfile;
+}
+const VISU::PProfile& VISU_ScalarMapPL::GetProfile()const
+{
+ return myProfile;
+}
+
+vtkIdType VISU_ScalarMapPL::GetNodeObjID(vtkIdType theVtkID)
+{
+ vtkIdType aIDx=-1;
+ //
+ if (!myProfile){
+ return aIDx;
+ }
+ aIDx=VISU_PipeLine::GetNodeObjID(theVtkID);
+ aIDx=myProfile->GetNodeObjID(aIDx);
+ return aIDx;
+}
+
+vtkIdType VISU_ScalarMapPL::GetElemObjID(vtkIdType theVtkID)
+{
+ vtkIdType aIDx=-1;
+ //
+ if (!myProfile){
+ return aIDx;
+ }
+ aIDx=VISU_PipeLine::GetElemObjID(theVtkID);
+ aIDx=myProfile->GetElemObjID(aIDx);
+ return aIDx;
+}
void VISU_ScalarMapPL::Build() {
myExtractor->SetInput(GetInput2());
#include "VISU_PipeLine.hxx"
#include "VISU_ScalarBarActor.hxx"
+#include <VISU_Convertor.hxx>
+
class vtkDataSet;
class VISU_Extractor;
virtual void GetSourceRange(float theRange[2]);
virtual void SetSourceRange();
+ virtual vtkIdType GetNodeObjID(vtkIdType theVtkID);
+ virtual vtkIdType GetElemObjID(vtkIdType theVtkID);
+
+ void SetProfile(const VISU::PProfile& theProfile);
+ const VISU::PProfile& GetProfile()const;
+
protected:
typedef vtkDataSet THook;
virtual THook* DoHook();
VISU_LookupTable *myMapperTable, *myBarTable;
VISU_FieldTransform *myFieldTransform;
VISU_Extractor* myExtractor;
+ VISU::PProfile myProfile;
};
#endif