2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
4 #include "bbcreaVtkMeshManager.h"
5 #include "bbcreaVtkPackage.h"
9 MeshManagerModel_Box::MeshManagerModel_Box( MeshManager *box )
14 MeshManagerModel_Box::~MeshManagerModel_Box( )
18 void MeshManagerModel_Box::RefreshOutputs(bool signalBox)
20 mBox->bbSetOutputMeshBase( GetMeshBase() );
21 mBox->bbSetOutputMeshTemp( GetMeshTemp() );
22 mBox->bbSetOutputMeshNames( GetMeshNames() );
24 mBox->bbSignalOutputModification();
29 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,MeshManager)
30 BBTK_BLACK_BOX_IMPLEMENTATION(MeshManager,bbtk::AtomicBlackBox);
32 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
34 void MeshManager::Process()
36 // THE MAIN PROCESSING METHOD BODY
37 // Here we simply set the input 'In' value to the output 'Out'
38 // And print out the output value
39 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
40 // void bbSet{Input|Output}NAME(const TYPE&)
41 // const TYPE& bbGet{Input|Output}NAME() const
43 // * NAME is the name of the input/output
44 // (the one provided in the attribute 'name' of the tag 'input')
45 // * TYPE is the C++ type of the input/output
46 // (the one provided in the attribute 'type' of the tag 'input')
47 // bbSetOutputOut( bbGetInputIn() );
48 // std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
50 if (meshManagerModel_Box==NULL)
52 meshManagerModel_Box = new MeshManagerModel_Box(this);
54 meshManagerModel_Box->AddMeshes_( bbGetInputMeshVector() );
56 meshManagerModel_Box->AddMesh_( bbGetInputMesh() );
58 meshManagerModel_Box->ResetHistory();
59 //meshManagerModel_Box->SetMeshBase( bbGetInputMesh() );
60 meshManagerModel_Box->RefreshOutputs(false);
61 bbSetOutputMeshManagerModel( meshManagerModel_Box );
62 } // if meshManagerModel_Box
66 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
68 void MeshManager::bbUserSetDefaultValues()
70 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
71 // Here we initialize the input 'In' to 0
73 meshManagerModel_Box = NULL;
78 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
80 void MeshManager::bbUserInitializeProcessing()
82 // THE INITIALIZATION METHOD BODY :
84 // but this is where you should allocate the internal/output pointers
89 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
91 void MeshManager::bbUserFinalizeProcessing()
93 // THE FINALIZATION METHOD BODY :
95 // but this is where you should desallocate the internal/output pointers
99 } // EO namespace bbcreaVtk