diff options
Diffstat (limited to 'source/blender/compositor/intern/COM_Converter.h')
-rw-r--r-- | source/blender/compositor/intern/COM_Converter.h | 80 |
1 files changed, 41 insertions, 39 deletions
diff --git a/source/blender/compositor/intern/COM_Converter.h b/source/blender/compositor/intern/COM_Converter.h index 512bd10f29f..0d7fc40de17 100644 --- a/source/blender/compositor/intern/COM_Converter.h +++ b/source/blender/compositor/intern/COM_Converter.h @@ -35,50 +35,52 @@ class NodeOperationBuilder; * \brief Conversion methods for the compositor */ class Converter { -public: - /** - * \brief Convert/wraps a bNode in its Node instance. - * - * For all nodetypes a wrapper class is created. - * - * \note When adding a new node to blender, this method needs to be changed to return the correct Node instance. - * - * \see Node - */ - static Node *convert(bNode *b_node); + public: + /** + * \brief Convert/wraps a bNode in its Node instance. + * + * For all nodetypes a wrapper class is created. + * + * \note When adding a new node to blender, this method needs to be changed to return the correct Node instance. + * + * \see Node + */ + static Node *convert(bNode *b_node); - /** - * \brief True if the node is considered 'fast'. - * - * Slow nodes will be skipped if fast execution is required. - */ - static bool is_fast_node(bNode *b_node); + /** + * \brief True if the node is considered 'fast'. + * + * Slow nodes will be skipped if fast execution is required. + */ + static bool is_fast_node(bNode *b_node); - /** - * \brief This method will add a datetype conversion rule when the to-socket does not support the from-socket actual data type. - * - * \note this method is called when conversion is needed. - * - * \param link: the NodeLink what needs conversion - * \param system: the ExecutionSystem to add the conversion to. - * \see NodeLink - a link between two sockets - */ - static NodeOperation *convertDataType(NodeOperationOutput *from, NodeOperationInput *to); + /** + * \brief This method will add a datetype conversion rule when the to-socket does not support the from-socket actual data type. + * + * \note this method is called when conversion is needed. + * + * \param link: the NodeLink what needs conversion + * \param system: the ExecutionSystem to add the conversion to. + * \see NodeLink - a link between two sockets + */ + static NodeOperation *convertDataType(NodeOperationOutput *from, NodeOperationInput *to); - /** - * \brief This method will add a resolution rule based on the settings of the NodeInput. - * - * \note Conversion logic is implemented in this method - * \see InputSocketResizeMode for the possible conversions. - * - * \param link: the NodeLink what needs conversion - * \param system: the ExecutionSystem to add the conversion to. - * \see NodeLink - a link between two sockets - */ - static void convertResolution(NodeOperationBuilder &builder, NodeOperationOutput *fromSocket, NodeOperationInput *toSocket); + /** + * \brief This method will add a resolution rule based on the settings of the NodeInput. + * + * \note Conversion logic is implemented in this method + * \see InputSocketResizeMode for the possible conversions. + * + * \param link: the NodeLink what needs conversion + * \param system: the ExecutionSystem to add the conversion to. + * \see NodeLink - a link between two sockets + */ + static void convertResolution(NodeOperationBuilder &builder, + NodeOperationOutput *fromSocket, + NodeOperationInput *toSocket); #ifdef WITH_CXX_GUARDEDALLOC - MEM_CXX_CLASS_ALLOC_FUNCS("COM:Converter") + MEM_CXX_CLASS_ALLOC_FUNCS("COM:Converter") #endif }; #endif |