3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
coat::scripto::AFormat< T > Class Template Reference

Abstract class for file of any format. More...

#include <SAFormat.h>

Public Member Functions

 AFormat ()
 Constructor for building an empty object. More...
 
bool operator== (const AFormat &b) const
 Comparison. Sources only. More...
 
template<class Child >
bool operator== (const Child &b) const
 For cozy registers to the scripting and for simple inheritance. More...
 
T & source (const std::string &s)
 Setter for source. More...
 
std::string source () const
 Getter for source. More...
 
T & layer (const std::string &l)
 Setter for name of layer. Right now set up a source as "layer". More...
 
std::string layer () const
 Getter for name of layer. More...
 

Detailed Description

template<class T>
class coat::scripto::AFormat< T >

Abstract class for file of any format.

Constructor & Destructor Documentation

template<class T>
coat::scripto::AFormat< T >::AFormat ( )
inline

Constructor for building an empty object.

Member Function Documentation

template<class T>
T& coat::scripto::AFormat< T >::layer ( const std::string &  l)
inline

Setter for name of layer. Right now set up a source as "layer".

FormatDAE a;
a.layer( "Head" );

Referenced by coat::scripto::AFormat< FormatFBX >::operator==().

template<class T>
std::string coat::scripto::AFormat< T >::layer ( ) const
inline

Getter for name of layer.

FormatDAE a;
string r = a.layer();
template<class T>
bool coat::scripto::AFormat< T >::operator== ( const AFormat< T > &  b) const
inline

Comparison. Sources only.

Todo:
operator std::string() const;
FormatDAE a, b;
...
if (a == b) { ... }

Referenced by coat::scripto::AFormat< FormatFBX >::operator==().

template<class T>
template<class Child >
bool coat::scripto::AFormat< T >::operator== ( const Child &  b) const
inline

For cozy registers to the scripting and for simple inheritance.

template<class T>
T& coat::scripto::AFormat< T >::source ( const std::string &  s)
inline

Setter for source.

FormatDAE a;
a.source( "layer" );

Referenced by coat::scripto::AFormat< FormatFBX >::operator==().

template<class T>
std::string coat::scripto::AFormat< T >::source ( ) const
inline

Getter for source.

FormatDAE a;
string r = a.source();

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