HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LOP_Node.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: LOP Library (C++)
7  *
8  * COMMENTS: The base class for all Lighting Operators
9  *
10  */
11 
12 #ifndef __LOP_Node_h__
13 #define __LOP_Node_h__
14 
15 #include "LOP_API.h"
16 #include "LOP_Error.h"
17 #include "LOP_LayerCheckpoints.h"
18 #include "HUSD/HUSD_Utils.h"
19 
20 #include <OP/OP_Network.h>
21 #include <HUSD/HUSD_DataHandle.h>
22 #include <HUSD/HUSD_PathSet.h>
23 #include <HUSD/HUSD_TimeCode.h>
24 #include <HUSD/HUSD_Xform.h>
25 #include <GU/GU_DetailHandle.h>
27 #include <UT/UT_Ramp.h>
28 
29 class LOP_Network;
32 class HUSD_FindPrims;
33 class HUSD_FindProps;
34 class HUSD_Info;
35 class PRM_Template;
36 class PRM_Name;
37 class UT_ArrayStringSet;
38 class UT_StringSet;
39 
40 extern "C" {
42 };
43 
44 #define LOP_DEBUG_FLAG 'D'
45 
50 };
51 
55 };
56 
61 };
62 
64 {
65 public:
68  bool myCreateReplacement = false;
69  bool myReplaceSublayersOnly = false;
70  bool myClearSource = false;
71  bool myCreateNewSublayer = false;
74 };
75 
77 {
78 public:
80  : myFrame(1.0),
81  myTime(0.0),
82  myRampBasisIsArray(false),
85  myValueLength(1),
86  myValueIsTimeDep(false),
87  myValueIsOrdered(false),
88  myIsCustom(true), // USD assumes custom attribs
89  myExpandCollection(true),
90  myClearAttrib(false),
93  { }
94 
109  UT_StringHolder myConnection; // path to the source attrib
112  int myValueInt[16];
122 
123  // Data members specific to authoring a collection from parms. This
124  // data is used if myValueType == HUSD_PROPERTY_VALUETYPE_COLLECTION.
133 };
135 
137 {
138 public:
139  // Standard OP_Network stuff:
140  static const char *theChildTableName;
141  const char *getChildType() const override;
142  const char *getOpType() const override;
143 
144  OP_OpTypeId getChildTypeID() const override;
145  OP_OpTypeId getOpTypeID() const override;
146  OP_DataType getCookedDataType() const override;
147 
148  static void buildOperatorTable(OP_OperatorTable &table);
149  static OP_Operator *getManagementOperator();
150  static void initializeExpressions();
151 
152  // Get a LOP node from the provided path. If the path is a LOP node path,
153  // return that LOP node. If it is a LOP network path, return the path to
154  // that LOP network's viewer node.
155  static LOP_Node *getLopNodeFromLopOrNetworkPath(const char *path,
156  bool default_to_stage = true);
157 
158  // Local variables that can be used by nodes which allow user-specifiable
159  // names on inputs (such as merge into and add variant).
160  static CH_LocalVariable theInputNameLocalVariables[];
161 
162  void opChanged(OP_EventType reason, void *data=0) override;
163  void onCreated() override;
164 
165  fpreal getW() const override;
166  fpreal getH() const override;
167 
168  // Gets/sets the value of the debug flag on this node.
169  bool getDebug() const override;
170  bool setDebug(bool state) override;
171  void setFlag(char flag, int8 val) override;
172  bool getNestedDebug() const;
173 
174  // Overrides the current node pointer method to ensure that we always
175  // find a current node when the old current node is deleted, even in the
176  // absence of a display node.
177  OP_Node *getCurrentNodePtr() override;
178  // Overrides the display node pointer method because a LOP node with LOP
179  // children doesn't need to have a display node, and will return the
180  // display node of the parent LOP network if it doesn't have its own.
181  OP_Node *getDisplayNodePtr() override;
182  void childFlagChange(OP_Node *nodeptr) override;
183  virtual LOP_Node *getViewerLop();
184 
185  // Gets the output child node corresponding to the specified output index.
186  LOP_Node *getOutputLop(int outputidx) const;
187 
188  // Override the function that determines whether this node should be
189  // drawn in the network editor with a "bypass" look. LOPs have an optional
190  // "bypass" spare parameter that makes the node act like it is bypassed,
191  // so it should also be drawn like it's bypassed.
192  bool getUseBypassLook(
193  const OP_EditorContext &ctx) const override;
194 
195  // Cook this node and return a data handle for the resulting stage.
196  const HUSD_DataHandle &getCookedDataHandle(OP_Context &context,
197  int outidx = 0,
198  bool use_last_cook_context_options = false,
199  const UT_StringSet *protect_options = nullptr);
200  // Cook this node and return a data handle for the resulting stage. If
201  // the cook leaves this node in an error state, go to this node's first
202  // connected input, and try to return the cooked data handle for that
203  // node, and so on. This method is useful for the scene graph tree and
204  // similar panels, where it's much more useful to show something than
205  // nothing in the case of an error. Returns the data handle and a
206  // pointer to the node whose data is actually returned.
207  const HUSD_DataHandle &getCookedDataHandleBypassingErrors(
208  LOP_Node *&owner_node,
209  int &owner_outidx,
210  OP_Context &context,
211  int outidx = 0,
212  bool use_last_cook_context_options = false,
213  const UT_StringSet *protect_options = nullptr);
214  // Return true if this node was the most recent node to create a lock
215  // on the stage we may be sharing with many other nodes.
216  bool isMostRecentStageLock() const;
217 
218  // Get the badge clor we should use for this LOP node do indicate which
219  // active layer is modified by this node.
220  bool hasLayerColorIndex(int &clridx) const;
221 
222  // Return true if this node is in an Edit Layer Block, otherwise false.
223  bool inEditLayerBlock(OP_Context &context);
224 
225  // Override this for nodes that want to allow python code to edit their
226  // stage or active layer directly.
227  virtual HUSD_PythonConverter *getEditableObject(LOP_EditableObject obj);
228 
229  // Create a new HUSD_LoadMasks object using parameters on the creator
230  // LOP Network to set variant selection fallback values.
231  HUSD_LoadMasksPtr createNewLoadMasks();
232 
233  // Evaluate a simplified adhoc collection parm and use it to fill in an
234  // HUSD_FindPrims object.
235  static bool getSimplifiedCollection(OP_Node *node,
236  const UT_StringRef &primpattern,
237  HUSD_FindPrims &findprims);
238  // Evaluate a simplified adhoc collection parm and use it to fill in an
239  // HUSD_FindProps object.
240  static bool getSimplifiedCollection(OP_Node *node,
241  const UT_StringRef &primpattern,
242  const UT_StringRef &proppattern,
243  HUSD_FindProps &findprops);
244  // Evaluate a pattern string using an HUSD_FindPrims against a LOP node's
245  // editableDataHandle, and return an array of matching paths. Isolates
246  // the locking of the stage to this function.
247  static bool getPathsFromPattern(LOP_Node &lop,
248  const UT_StringRef &pattern,
249  UT_StringArray &paths,
250  bool allow_missing_explicit_prims = false,
251  HUSD_PrimTraversalDemands demands =
253  // Tests if the provided primitive is editable. Adds the result to the
254  // provided map so the next call with the same path can return the cached
255  // result immediately. The first time each non-editable prim is found,
256  // a warning is added to this node.
257  bool isPrimitiveEditable(
258  UT_StringMap<bool> alloweditmap,
259  const HUSD_Info &info,
260  const UT_StringHolder &path,
261  bool ignoreeditableflag,
262  LOP_ErrorCodes non_editable_error_code =
264 
265  // Return the number of layers in our data handle.
266  int layerCount() const;
267 
268  // Track the set of primitives modified by the most recent cook of
269  // this node.
270  const HUSD_PathSet &lastModifiedPrims() const;
271  void setLastModifiedPrims(const UT_StringRef &path,
272  bool add_to_existing = false);
273  void setLastModifiedPrims(const UT_StringArray &paths,
274  bool add_to_existing = false);
275  void setLastModifiedPrims(const UT_ArrayStringSet &paths,
276  bool add_to_existing = false);
277  void setLastModifiedPrims(const HUSD_FindPrims &findprims,
278  bool add_to_existing = false);
279  void setLastModifiedPrims(const HUSD_PathSet &paths,
280  bool add_to_existing = false);
281  void setLastModifiedPrimsWithPathExpression(
282  HUSD_AutoAnyLock &lock,
283  const UT_StringRef &path_expr,
284  bool add_to_existing = false);
285  void clearLastModifiedPrims();
286 
287  // Tests if this node has an active layer that is large enough that we
288  // want output nodes to always start a new active layer. The default
289  // implementation looks at the number of lastModifiedPrims. This method
290  // is const and should never trigger a cook - it should always look at
291  // data from the most recent cook (and return false if the node has
292  // never been cooked).
293  virtual bool hasLargeActiveLayer() const;
294 
295  // For a new stage being authored by this node, these methods allow the
296  // node to control the asset path or url/string pairs used to configure
297  // the stage's asset resolver context. Individual node types can provide
298  // custom implementations.
299  virtual bool getResolverContextAssetPath(UT_String &assetpath);
300  virtual bool getResolverContextStrings(
301  UT_StringMap<UT_StringHolder> &resolverstrings);
302 
303  // Code for tracking convex hulls around context option "blocks" in the
304  // network editor.
305  virtual bool showConvexHull() const
306  { return false; }
307  virtual int contextOptionsStackEffect(int input) const
308  { return 0; }
309  virtual void findEnclosedItems(OP_EnclosedItems &items) const;
310 
311  // Evaluate local variables common to multiple LOP node types.
312  bool evalVariableValue(fpreal &val, int var_id,
313  int thread) override;
314  bool evalVariableValue(UT_String &val, int var_id,
315  int thread) override;
317  const char *name) override;
319  UT_StringArray &names) override;
320 
322  { return myLastCookActivation; }
323  HUSD_TimeCode getTimeCode(const OP_Context &context,
324  bool timedep) const;
325  HUSD_LoadMasksPtr getLastCookLoadMasks(int outidx = 0);
326 
327  // Public functions for adding warnings and errors, so that utility
328  // methods in LOP_PRMShared and elsewhere can add errors directly to
329  // LOP nodes.
330  void addSystemError(const char *msg = 0)
331  { getLockedErrorManager()->systemError(msg); }
332  void addError(int code, const char *msg = 0)
334  addError(LOP_OPTYPE_NAME, code, msg); }
335  void addWarning(int code, const char *msg = 0)
337  addWarning(LOP_OPTYPE_NAME, code, msg); }
338  void addMessage(int code, const char *msg = 0)
340  addMessage(LOP_OPTYPE_NAME, code, msg); }
341 
342  const char *inputLabel(OP_InputIdx idx) const override;
343  const char *outputLabel(OP_OutputIdx idx) const override;
344 
346  const OP_NodeInfoTreeParms &parms) override;
347 
348  // Guide geometry for display in the viewport, but which does not appear
349  // in the USD stage anywhere.
350  virtual int getNumGuides() const;
351  virtual const char *getGuideColorName(int idx) const;
352  GU_DetailHandle cookGuide(int idx, OP_Context &context);
353 
354  // For transforming between LOP and OBJ spaces.
355  int getRelativeTransform(OP_Node &to,
356  UT_Matrix4 &xform,
357  OP_Context &context) override;
358  int getRelativeTransform(OP_Node &to,
359  UT_DMatrix4 &xform,
360  OP_Context &context) override;
361 
362  // Extracting camera info directly from a LOP stage.
363  bool getCameraInfo(const UT_StringRef &camid,
364  const OP_Context &context,
365  DEP_MicroNode *depnode,
366  UT_StringHolder &foundcamid,
367  UT_CameraParms &camparms) override;
369  const OP_Context &context,
370  bool get_inverse_xform,
371  DEP_MicroNode *depnode,
372  UT_DMatrix4 &xform) override;
373 
374  // Called on any parm that gets evaluated while in getAttributeParmSet.
375  virtual void handleParmEvaluatedForParmSet(PRM_Parm *parm);
376 
377  // For C++ nodes that want to support multiple outputs, override this
378  // method to return true. The output index will be supplied to the cook
379  // method as a context option.
380  virtual bool supportMultipleOutputsAsContextOption() const;
381 
382  // Returns the name of the context option into which we put the "output
383  // index" to cook for a node that returns true from
384  // supportMultipleOutputsAsContextOption.
385  static const UT_StringHolder &getOutputIndexContextOption();
386 
387 protected:
388  LOP_Node(OP_Network *parent, const char *name,
389  OP_Operator *entry);
390  ~LOP_Node() override;
391 
392  // Common cook method for all LOP nodes. Calls cookMyLop.
393  OP_ERROR cookMe(OP_Context &context) override;
394  // Specific cook method for each LOP node, must be overridden.
395  virtual OP_ERROR cookMyLop(OP_Context &context) = 0;
396  // Specific guide cook method for each LOP node.
397  virtual GU_DetailHandle cookMyGuide(int idx, OP_Context &context);
398  // Clears any cached data for this node. In the case of a LOP node, this
399  // means clearing our locked stage pointer from the GusdStageCache.
400  void clearCache() override;
401  // Makes our own data handle reference or copy the data handle of another
402  // node. Should be used to reference nodes that are not inputs to this
403  // node.
404  OP_ERROR cookReferenceNode(OP_Context &context,
405  LOP_Node *source_lop,
406  int outidx = 0,
407  bool copy_data_handle = false,
408  bool add_extra_input = true,
409  const HUSD_LoadMasksPtr &load_masks =
411  // Makes our own data handle reference or copy the data handle of one
412  // of our input nodes.
413  OP_ERROR cookReferenceInput(OP_Context &context,
414  int which_input = 0,
415  bool require_input = false,
416  bool copy_data_handle = false,
417  const HUSD_LoadMasksPtr &load_masks =
419  // Wrapper to call copyReferenceInput with the copy_data_handle
420  // parameter set to true.
421  OP_ERROR cookModifyInput(OP_Context &context,
422  int which_input = 0,
423  bool require_input = false,
424  const HUSD_LoadMasksPtr &load_masks =
426  // Makes our own data handle reference or copy the data handle of another
427  // node, but replace one layer in the source stage with another layer.
428  // Should be used to reference nodes that are not inputs to this
429  // node.
430  OP_ERROR cookReferenceNodeWithReplacement(OP_Context &context,
431  LOP_Node *source_lop,
432  const UT_StringRef &from_path_pattern,
433  const LOP_LayerReplacementInfo &replacement_info,
434  UT_StringSet &replaced_layers,
435  bool add_extra_input);
436  // Makes our own data handle reference or copy the data handle of one
437  // of our input nodes, but replace one layer in the source stage with
438  // another layer.
439  OP_ERROR cookReferenceInputWithReplacement(OP_Context &context,
440  const UT_StringRef &from_path_pattern,
441  const LOP_LayerReplacementInfo &replacement_info,
442  UT_StringSet &replaced_layers,
443  int which_input,
444  bool require_input);
445  // Access the data handle of one of our inputs, that must have been
446  // locked already to ensure the data is cooked for the current context.
447  const HUSD_DataHandle &lockedInputData(OP_Context &context,
448  int which_input);
449  // Access our own data handle for modification. Should only be called
450  // from within cookMyLop.
451  HUSD_DataHandle &editableDataHandle();
452 
453  // For subnet nodes, this method will return the contained node that
454  // corresponds to specified output connector index. For all other nodes
455  // with will return nullptr. This will trigger a call to syncDelayedOTL
456  // if outidx > 0.
457  LOP_Node *getNodeForSubnetOutput(int outidx);
458 
459  // For nodes with editable input names, this function evaluates all the
460  // input names, assigning any dependencies to the specified parameter.
461  OP_ERROR getInputStrings(const UT_StringRef &key_parm_name,
462  fpreal t,
463  UT_StringArray &input_names,
464  bool allow_empty_strings = false);
465 
466  // Functions for controlling checkpoints created during a cook operation.
467  void setClearCheckpointsOnInputChange(bool clear);
468  void createCheckpoint(const HUSD_AutoAnyLock &lock,
469  const UT_StringHolder &id);
470  void removeCheckpoint(const UT_StringRef &id);
471  void removeAllCheckpoints();
472 
473  // Functions for accessing existing checkpoitns during a cook operation.
474  void getAvailableCheckpoints(UT_StringArray &ids) const;
475  bool restoreCheckpoint(const HUSD_AutoLayerLock &layerlock,
476  const UT_StringRef &id);
477 
478  OP_ERROR bypassMe(OP_Context &context,
479  int &copied_input) override;
480  void deleteCookedData() override;
481  int saveCookedData(const char *, OP_Context &) override;
482  int saveCookedData(std::ostream &os, OP_Context &,
483  int binary = 0) override;
484  const char *getFileExtension(int bin) const override;
485 
486  // Specifically fills in the ramp attribute names from the spare tags on
487  // a parameter. Used by getAttributeParmSet, but can be called separately
488  // from that function for blocking attributes for a ramp parameter.
489  static void getRampAttributeNamesForParmSet(
490  const PRM_Template *tplate,
491  LOP_AttributeParmSet &pset);
492  // Populates a LOP_AttributeParmSet data structure from a parameter, using
493  // all the USD-specific information in the parameter's spare tags.
494  void getAttributeParmSet(OP_Node *node,
495  const PRM_Template *tplate,
496  LOP_AttributeParmSet &pset,
497  fpreal t);
498  // Applies any API schema mentioned in the LOP_AttributeParmSet. This
499  // method can be called in a change block before calling
500  // setAttributeFromParmSet for a bunch of LOP_AttributeParmSets.
501  // Applying the schemas first in a change block can greatly reduce the
502  // amount of recomposition done as a result of adding an API schema to
503  // a large number of primitives.
504  bool applySchemaFromParmSet(
505  HUSD_AutoWriteLock &writelock,
506  LOP_AttributeParmSet &pset,
507  UT_StringSet *failedapis = nullptr);
508  // Sets a USD attribute or relationship on a USD primitive based on the
509  // current value of a node parameter. Use getAttributeParmSet to populate
510  // the LOP_AttributeParmSet data structure from the parm first.
511  bool setAttributeFromParmSet(
512  HUSD_AutoWriteLock &writelock,
513  LOP_AttributeParmSet &pset,
514  fpreal t,
515  UT_StringSet *failedapis = nullptr);
516 
517  // Helps with convex hull generation by looking at the context option
518  // stack information implemented by the virtual contextOptionsStackEffect.
519  void encloseInputs(OP_EnclosedItems &items,
520  int stackdepth) const;
521 
522  // Map of attribute names to evaluator objects.
525 
526  // Helper class to determine whether nodes with multiple inputs will be
527  // composing stages with differing time-codes-per-second (TCPS) metadata.
528  //
529  // As of USD 20.08, if you reference/sublayer (i.e., compose) a 60tcps stage
530  // into a 24tcps stage (for example), any time sample data within will be
531  // automatically time-scaled (1.0 -> 0.4, ..., 60.0 -> 24.0, etc).
532  //
533  // If the data for the stage is driven by Houdini expressions/keyframes and
534  // not by cached time samples, this time-scaling is not applied, which might
535  // be unexpected for the user. This class can help warn them.
536  //
537  // Expected usage in `cookMyLop()`:
538  // - sometime after `cookModifyInput(context);`, instantiate a checker:
539  // `DifferingTimeCodesPerSecChecker tcpsChecker(this);`
540  // - whenever you first get your secondary inputs via
541  // `const HUSD_DataHandle &datahandle = lockedInputData(context, i);`,
542  // add this data handle to the checker:
543  // `tcpsChecker.addInput(datahandle, context);`
544  // - whenever you first get your primary input via
545  // `const HUSD_DataHandle &datahandle = editableDataHandle();`
546  // also add this data handle to the checker, with `false`:
547  // `tcpsChecker.addInput(datahandle, context, false);`
548  // - after all the inputs (primary & secondary) have been added to the
549  // checker, check to see if there's an issue:
550  // `tcpsChecker.checkForDifferingTCPS();`
551  //
553  {
554  public:
555  explicit DifferingTimeCodesPerSecChecker(LOP_Node *lop) : myLop(lop) {}
556  void addInput(
557  const HUSD_DataHandle &handle,
558  OP_Context &context,
559  bool onlyTimeDep = true);
560  // Returns `true` if there are differing values; `false` otherwise
561  bool checkForDifferingTCPS(bool emitWarning = true);
562 
563  private:
564  LOP_Node *myLop;
565  std::set<fpreal64> myTCPSEntries;
566  };
567 
568 private:
569  // Resolves a node path pointing to a LOP node into an HUSD_LockedStagePtr.
570  // This is used by husdLopStageResolver in HUSD_Utils.C to help the
571  // GusdStageCache convert "op:/" USD file names into a stage generated
572  // by a LOP node.
573  static HUSD_LockedStagePtr resolveStage(const UT_StringRef &path);
574 
575  // Helper function used by cookReferenceNodeWithReplacement methods.
576  OP_ERROR copyDataWithReplacement(
577  HUSD_DataHandle &data_handle,
578  const UT_StringRef &from_path_pattern,
579  const LOP_LayerReplacementInfo &replacement_info,
580  UT_StringSet &replaced_layers);
581  void setDebugDirtyRecursive(
582  void *change_data, bool top_level);
583  void resetDataHandle();
584 
585  HUSD_DataHandle myDataHandle;
586  LOP_LayerCheckpoints myCheckpoints;
587  HUSD_PathSet myLastModifiedPrims;
588  bool myLastCookActivation;
589  bool myHasActivationParameter;
590  bool myHasShotActivationParameter;
591 };
592 
593 #endif
virtual int saveCookedData(std::ostream &os, OP_Context &, int binary=0)=0
Definition: UT_Set.h:58
int myEvaluatingInputNameIndex
Definition: LOP_Node.h:524
fpreal getH() const override
Node position/scale is used by the UI.
virtual bool getUseBypassLook(const OP_EditorContext &ctx) const
fpreal getW() const override
Node position/scale is used by the UI.
UT_StringHolder myCollectionExpansionRule
Definition: LOP_Node.h:129
UT_SharedPtr< HUSD_LoadMasks > HUSD_LoadMasksPtr
UT_StringHolder myPrimPath
Definition: LOP_Node.h:97
virtual UT_AttributeEvaluator * createAttributeEvaluator(const char *name)
HUSD_MakeNewPathFunc myMakeNewPathFn
Definition: LOP_Node.h:67
void addMessage(int code, const char *msg=0)
Definition: LOP_Node.h:338
HUSD_XformStyle myValueXformStyle
Definition: LOP_Node.h:115
virtual void getAttributeEvaluatorNames(UT_StringArray &names)
#define SYS_VISIBILITY_EXPORT
HUSD_XformStyle
Definition: HUSD_Xform.h:34
#define LOP_OPTYPE_NAME
Definition: OP_Node.h:318
virtual void setFlag(char tag, int8 val)
UT_StringHolder myReplacementIdentifier
Definition: LOP_Node.h:66
UT_StringHolder myRampBasisAttrName
Definition: LOP_Node.h:100
const GLuint GLenum const void * binary
Definition: glcorearb.h:1924
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
int OP_InputIdx
Definition: OP_DataTypes.h:184
UT_StringHolder myValueType
Definition: LOP_Node.h:110
UT_ErrorSeverity
Definition: UT_Error.h:25
LOP_InputNameVariableId
Definition: LOP_Node.h:52
UT_StringHolder myCreateNewSublayerName
Definition: LOP_Node.h:72
HUSD_PrimTraversalDemands
Definition: HUSD_Utils.h:39
Each instance is a tab.
Definition: PRM_Type.h:431
virtual OP_ERROR cookMe(OP_Context &context)=0
virtual void childFlagChange(OP_Node *)
UT_StringHolder myRampPosAttrName
Definition: LOP_Node.h:102
double fpreal64
Definition: SYS_Types.h:201
void opChanged(OP_EventType reason, void *data=nullptr) override
UT_StringHolder myControl
Definition: LOP_Node.h:103
virtual const char * inputLabel(OP_InputIdx idx) const
UT_StringHolder myCollectionIcon
Definition: LOP_Node.h:130
bool myCollectionUsePathExpr
Definition: LOP_Node.h:131
PRM_Type myParmType
Definition: LOP_Node.h:105
virtual bool showConvexHull() const
Definition: LOP_Node.h:305
virtual OP_Node * getCurrentNodePtr()
UT_StringMap< UT_UniquePtr< UT_AttributeEvaluator > > myEvaluators
Definition: LOP_Node.h:523
bool myCollectionAllowInstanceProxies
Definition: LOP_Node.h:132
UT_Array< LOP_AttributeParmSet > LOP_AttributeParms
Definition: LOP_Node.h:134
virtual bool getCameraInfo(const UT_StringRef &camid, const OP_Context &context, DEP_MicroNode *depnode, UT_StringHolder &foundcamid, UT_CameraParms &camparms)
SYS_VISIBILITY_EXPORT void newLopOperator(OP_OperatorTable *table)
OP_OpTypeId
Definition: OP_OpTypeId.h:18
void addWarning(int code, const char *msg=0)
Definition: LOP_Node.h:335
#define LOP_API
Definition: LOP_API.h:10
PRM_MultiType myMultiParmType
Definition: LOP_Node.h:106
GLuint const GLchar * name
Definition: glcorearb.h:786
LOP_ErrorCodes
Definition: LOP_Error.h:16
signed char int8
Definition: SYS_Types.h:35
GLushort pattern
Definition: glad.h:2583
virtual OP_DataType getCookedDataType() const =0
GLenum GLenum GLsizei void * table
Definition: glad.h:5129
virtual OP_OpTypeId getOpTypeID() const
Definition: OP_Node.h:547
UT_StringHolder myConnection
Definition: LOP_Node.h:109
GLdouble t
Definition: glad.h:2397
UT_Function< UT_StringHolder(const UT_StringRef &oldpath)> HUSD_MakeNewPathFunc
UT_StringHolder myRampCountAttrName
Definition: LOP_Node.h:99
virtual int contextOptionsStackEffect(int input) const
Definition: LOP_Node.h:307
virtual const char * getChildType() const
static const char * theChildTableName
Definition: LOP_Node.h:140
UT_StringHolder myAttrName
Definition: LOP_Node.h:98
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
virtual const char * getFileExtension(int binary) const =0
GA_API const UT_StringHolder parms
void addSystemError(const char *msg=0)
Definition: LOP_Node.h:330
Parameters for OP_Node::fillInfoTree()/OP_Node::fillInfoTreeNodeSpecific()
virtual void fillInfoTreeNodeSpecific(UT_InfoTree &tree, const OP_NodeInfoTreeParms &parms)
LOP_ActivationState
Definition: LOP_Node.h:57
UT_StringHolder myCollectionParmPrefix
Definition: LOP_Node.h:125
LOP_EditableObject
Definition: LOP_Node.h:46
fpreal64 fpreal
Definition: SYS_Types.h:278
UT_StringHolder myCollectionIncludePattern
Definition: LOP_Node.h:127
UT_SharedPtr< HUSD_LockedStage > HUSD_LockedStagePtr
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
virtual const char * getOpType() const
UT_StringHolder myApiSchema
Definition: LOP_Node.h:107
GLuint GLfloat * val
Definition: glcorearb.h:1608
UT_StringHolder myInterpolation
Definition: LOP_Node.h:104
UT_StringHolder myValueStr
Definition: LOP_Node.h:111
OP_EventType
Definition: OP_Value.h:22
OP_DataType
Definition: OP_DataTypes.h:189
virtual OP_OpTypeId getChildTypeID() const =0
int OP_OutputIdx
Definition: OP_DataTypes.h:185
virtual int getRelativeTransform(OP_Node &to, UT_Matrix4 &xform, OP_Context &context)
UT_StringHolder myXformParmPrefix
Definition: LOP_Node.h:108
virtual bool evalVariableValue(UT_String &val, int index, int thread)
virtual bool getWorldTransformFromData(const UT_StringRef &id, const OP_Context &context, bool get_inverse_xform, DEP_MicroNode *depnode, UT_DMatrix4 &xform)
void addError(int code, const char *msg=0)
Definition: LOP_Node.h:332
UT_StringHolder myCollectionName
Definition: LOP_Node.h:126
virtual bool getDebug() const
Definition: OP_Node.h:1412
virtual const char * outputLabel(OP_OutputIdx idx) const
UT_StringHolder myCollectionExcludePattern
Definition: LOP_Node.h:128
GLuint * ids
Definition: glcorearb.h:652
virtual OP_ERROR bypassMe(OP_Context &context, int &copied_input)=0
state
Definition: core.h:2289
UT_LockedRawPtr< UT_ErrorManager, OP_Lock > getLockedErrorManager()
fpreal64 myValueFloat[16]
Definition: LOP_Node.h:113
Definition: format.h:1821
virtual OP_Node * getDisplayNodePtr()
PRM_MultiType
This type enum defines the different types of multi (dynamic) parameters.
Definition: PRM_Type.h:426
virtual void clearCache()
virtual void onCreated()
Overriden in VOPs.
Definition: OP_Node.h:3190
virtual bool setDebug(bool on_off)
Definition: OP_Node.h:1366
bool lastCookActivationState() const
Definition: LOP_Node.h:321
virtual void deleteCookedData()=0