HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Exception Class Reference

rst:: More...

#include <OpenColorIO.h>

+ Inheritance diagram for Exception:

Public Member Functions

 Exception (const char *) throw ()
 cpp:function:: Constructor that takes a string as the exception message. More...
 
 Exception (const Exception &) throw ()
 cpp:function:: Constructor that takes an exception pointer. More...
 
Exceptionoperator= (const Exception &) throw ()
 cpp:function:: Constructor that takes an exception pointer and returns an exception pointer (???). More...
 
virtual ~Exception () throw ()
 cpp:function:: More...
 
virtual const char * what () const throw ()
 cpp:function:: More...
 

Detailed Description

rst::

rst::

C++ API

Usage Example:** Compositing plugin that converts from "log" to "lin"

.. code-block:: cpp

#include <OpenColorIO/OpenColorIO.h> namespace OCIO = OCIO_NAMESPACE;

try { Get the global OpenColorIO config This will auto-initialize (using $OCIO) on first use OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig();

Get the processor corresponding to this transform. OCIO::ConstProcessorRcPtr processor = config->getProcessor(OCIO::ROLE_COMPOSITING_LOG, OCIO::ROLE_SCENE_LINEAR);

Wrap the image in a light-weight ImageDescription OCIO::PackedImageDesc img(imageData, w, h, 4);

Apply the color transformation (in place) processor->apply(img); } catch(OCIO::Exception & exception) { std::cerr << "OpenColorIO Error: " << exception.what() << std::endl; }cpp:class:: An exception class to throw for errors detected at

Definition at line 88 of file OpenColorIO.h.

Constructor & Destructor Documentation

Exception::Exception ( const char *  )
throw (
)

cpp:function:: Constructor that takes a string as the exception message.

Exception::Exception ( const Exception )
throw (
)

cpp:function:: Constructor that takes an exception pointer.

virtual Exception::~Exception ( )
throw (
)
virtual

cpp:function::

Member Function Documentation

Exception& Exception::operator= ( const Exception )
throw (
)

cpp:function:: Constructor that takes an exception pointer and returns an exception pointer (???).

virtual const char* Exception::what ( ) const
throw (
)
virtual

cpp:function::


The documentation for this class was generated from the following file: