12 #ifndef __MOT_Director_h__
13 #define __MOT_Director_h__
30 class MOT_ScriptNodeResolver;
49 bool alloptypes =
true,
50 bool exec_pythonrc =
true,
51 bool exec_ready =
true);
55 int *hint =
nullptr)
const override;
66 MGR_Node *getParticleManager() {
return myParticles; }
76 void setFileName(
const char *nm,
bool dovarchange);
77 void setFileName(
const char *nm);
86 bool moveFileNameToNumberedBackup(
92 bool moveFileNameToNumberedBackup(
101 bool copyFileNameToNumberedBackup(
108 bool copyFileNameToNumberedBackup(
115 void resetForNewFile();
119 void runPostNewScript();
129 const char *indexPath,
141 std::ostream &os)
const override;
153 const char *parmname,
166 const char *nodename,
167 bool saveempty)
const override;
184 bool is_source_code =
false)
override;
186 bool is_source_code =
false)
override;
189 std::ostream &os)
override;
196 const char *node_name=
nullptr);
201 static const char *hasSubNetworks(
OP_Network *net);
216 const char *preferred_subnet_name =
nullptr,
217 const char *subnet_type_name =
nullptr);
221 static void extractSubNetwork(
OP_Network *subnet,
231 void enable(
int state)
override;
237 bool loadOrMergeHipFile(
const char *file_name,
238 bool merge,
const char *
pattern,
244 void getCollisionsIfMerged(
const char *file_name,
254 void saveHipFile(
const char *file_name,
265 {
return myGeometryChannelsManager; }
275 void layoutManagers();
276 void execPythonRCFiles();
277 void execReadyFiles();
278 void installCommands();
279 void loadOpCustomizeFile();
280 void cacheChopnetOperators();
281 bool forceChopnetToExport(
OP_Node &chop_network);
MOT_GeometryChannelsManager & getGeometryChannelsManager()
virtual bool addNodeSpareParm(OP_Parameters *, PRM_Template *) const
MGR_Node * getRenderManager()
MGR_Node * getTopNetManager()
virtual void enable(int state)
virtual void findInternalScriptOperators(const char *, OP_OTLDefinitionArray &)
OP_Node * getChild(const char *name=0, int *hint=0) const override
virtual bool loadNodeSpareParms(OP_Parameters *, UT_IStream &, UT_String &) const
virtual void beginLoading()
MGR_Node * getVopManager()
virtual void clearHandleSettings(OP_Operator *)
virtual void deleteAllNodeSpareParms(OP_Parameters *) const
MGR_Node * getObjectManager()
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
virtual void opUpdateAllExports()
LOP_Network * getLopManager()
virtual void updateExportedParms(OP_Node *)
virtual void clearNetwork(int clear_aliases)
virtual bool loadNodeCompiledDs(OP_Node *, UT_IStream &)
virtual bool loadNodeCompiledCode(OP_Node *, UT_IStream &, bool is_source_code=false)
MGR_Node * getShopManager()
virtual OP_ERROR saveNodeSpareParms(OP_Parameters *, bool, std::ostream &) const
GLuint const GLchar * name
virtual bool removeNodeSpareParm(OP_Parameters *node, const char *parmname, UT_StringArray *errs=nullptr, UT_StringArray *warn=nullptr) const
virtual OP_Node * linkInternalScriptOperator(const char *, OP_Operator *)
virtual void getInternalScriptDefinition(OP_Node *, UT_String &)
virtual void deleteNodeSpareParmLayout(OP_Parameters *) const
Create an evaluation context scope with a new node.
virtual void endLoading()
virtual void saveNodeSpareParmCommands(OP_Parameters *, std::ostream &, const char *, bool) const
virtual void saveNodeCompiledDs(OP_Node *, std::ostream &)
MGR_Node * getMatManager()
virtual PRM_ScriptPage * allocateSpareScriptPage(OP_Operator *)
MGR_Node * getChopNetManager()
virtual void saveNodeCompiledCode(OP_Node *, std::ostream &, bool is_source_code=false)
virtual void changeNodeSpareParms(OP_Parameters *, PI_EditScriptedParms &, UT_String &) const
const UT_String & getFileName() const
MGR_Node * getCop2Manager()
static const char * theChildTableName
friend class MOT_Director