COPASI API  4.16.103
Public Member Functions | Static Protected Member Functions | List of all members
CLImageTexturizer Class Referenceabstract

#include <CLImageTexturizer.h>

Inheritance diagram for CLImageTexturizer:
Inheritance graph

Public Member Functions

virtual CLTextureSpecoperator() (const std::string &filename, const std::string &basedir)=0

Static Protected Member Functions

static std::string to_absolute_path (const std::string &filename, const std::string &basedir)

Detailed Description

Definition at line 21 of file CLImageTexturizer.h.

Member Function Documentation

virtual CLTextureSpec* CLImageTexturizer::operator() ( const std::string &  filename,
const std::string &  basedir 
pure virtual
std::string CLImageTexturizer::to_absolute_path ( const std::string &  filename,
const std::string &  basedir 

Takes a filename and tries to find out if it is a relative or an absolute path. If the file can not be found either way, an empty string is returned.

Definition at line 22 of file CLImageTexturizer.cpp.

References CDirEntry::makePathAbsolute().

Referenced by CLSimpleImageTexturizer::create_texture_for_image(), and CQQtImageTexturizer::operator()().

23 {
24  // first convert to UTF8 because CDirEntry expects UTF8
25  std::string Path = filename;
26  CDirEntry::makePathAbsolute(Path, basedir);
28  return Path;
29 }
static bool makePathAbsolute(std::string &relativePath, const std::string &absoluteTo)
Definition: CDirEntry.cpp:481

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