Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::ObjTexture Class Reference

Represents a Wavefront OBJ texture. See also ObjMaterial and ObjLoader. More...

#include <ioOBJ.hpp>

Public Member Functions

 ObjTexture ()
 
const ObjTextureparseLine (const String &line, const String &file)
 
bool valid () const
 
void print ()
 Prints the content of the material. Used for debugging purposes. More...
 
const Stringpath () const
 Texture file name. More...
 
bool blendU () const
 -blendu on | off More...
 
bool blendV () const
 -blendv on | off More...
 
bool cc () const
 -cc on | off More...
 
bool clamp () const
 -clamp on | off More...
 
float mm_Base () const
 -mm base gain More...
 
float mm_Gain () const
 -mm base gain More...
 
const fvec3o_UVW () const
 -o u v w More...
 
const fvec3s_UVW () const
 -s u v w More...
 
const fvec3t_UVW () const
 -t u v w More...
 
float texres_Value () const
 -texres value More...
 
char imfchan () const
 -imfchan r | g | b | m | l | z More...
 
float bm () const
 -bm mult More...
 
void setPath (const String &filename)
 Texture file name. More...
 
void setBlendU (bool on)
 -blendu on | off More...
 
void setBlendV (bool on)
 -blendv on | off More...
 
void setCC (bool on)
 -cc on | off More...
 
void setClamp (bool on)
 -clamp on | off More...
 
void setMM_Base (float base)
 -mm base gain More...
 
void setMM_Gain (float gain)
 -mm base gain More...
 
void setO_UVW (const fvec3 &o_uvw)
 -o u v w More...
 
void setS_UVW (const fvec3 &s_uvw)
 -s u v w More...
 
void setT_UVW (const fvec3 &t_uvw)
 -t u v w More...
 
void setTexres_Value (float value)
 -texres value More...
 
void setImfchan (char val)
 -imfchan r | g | b | m | l | z More...
 
void setBM (float bm)
 -bm mult More...
 

Protected Attributes

String mFileName
 Texture file name. More...
 
bool mBlendU
 -blendu on | off More...
 
bool mBlendV
 -blendv on | off More...
 
bool mCC
 -cc on | off More...
 
bool mClamp
 -clamp on | off More...
 
float mMM_Base
 -mm base gain More...
 
float mMM_Gain
 -mm base gain More...
 
fvec3 mO_UVW
 -o u v w More...
 
fvec3 mS_UVW
 -s u v w More...
 
fvec3 mT_UVW
 -t u v w More...
 
float mTexres_Value
 -texres value More...
 
char mImfchan
 -imfchan r | g | b | m | l | z More...
 
float mBM
 -bm mult More...
 

Detailed Description

Represents a Wavefront OBJ texture. See also ObjMaterial and ObjLoader.

Definition at line 92 of file ioOBJ.hpp.

Constructor & Destructor Documentation

◆ ObjTexture()

ObjTexture::ObjTexture ( )

Definition at line 64 of file ioOBJ.cpp.

References mBlendU, mBlendV, mBM, mCC, mClamp, mImfchan, mMM_Base, mMM_Gain, mO_UVW, mS_UVW, mT_UVW, and mTexres_Value.

Referenced by vl::ObjLoader::loadObjMaterials().

Member Function Documentation

◆ blendU()

bool vl::ObjTexture::blendU ( ) const
inline

-blendu on | off

Definition at line 104 of file ioOBJ.hpp.

◆ blendV()

bool vl::ObjTexture::blendV ( ) const
inline

-blendv on | off

Definition at line 106 of file ioOBJ.hpp.

◆ bm()

float vl::ObjTexture::bm ( ) const
inline

-bm mult

Definition at line 126 of file ioOBJ.hpp.

◆ cc()

bool vl::ObjTexture::cc ( ) const
inline

-cc on | off

Definition at line 108 of file ioOBJ.hpp.

◆ clamp()

bool vl::ObjTexture::clamp ( ) const
inline

-clamp on | off

Definition at line 110 of file ioOBJ.hpp.

◆ imfchan()

char vl::ObjTexture::imfchan ( ) const
inline

-imfchan r | g | b | m | l | z

Definition at line 124 of file ioOBJ.hpp.

◆ mm_Base()

float vl::ObjTexture::mm_Base ( ) const
inline

-mm base gain

Definition at line 112 of file ioOBJ.hpp.

◆ mm_Gain()

float vl::ObjTexture::mm_Gain ( ) const
inline

-mm base gain

Definition at line 114 of file ioOBJ.hpp.

◆ o_UVW()

const fvec3& vl::ObjTexture::o_UVW ( ) const
inline

-o u v w

Definition at line 116 of file ioOBJ.hpp.

◆ parseLine()

const ObjTexture & ObjTexture::parseLine ( const String line,
const String file 
)

◆ path()

const String& vl::ObjTexture::path ( ) const
inline

Texture file name.

Definition at line 102 of file ioOBJ.hpp.

Referenced by vl::ObjLoader::loadOBJ().

◆ print()

void ObjTexture::print ( )

Prints the content of the material. Used for debugging purposes.

Definition at line 173 of file ioOBJ.cpp.

References mBlendU, mBlendV, mBM, mCC, mClamp, mFileName, mImfchan, mMM_Base, mMM_Gain, mO_UVW, mS_UVW, mT_UVW, mTexres_Value, vl::Log::print(), and vl::String::toStdString().

◆ s_UVW()

const fvec3& vl::ObjTexture::s_UVW ( ) const
inline

-s u v w

Definition at line 118 of file ioOBJ.hpp.

◆ setBlendU()

void vl::ObjTexture::setBlendU ( bool  on)
inline

-blendu on | off

Definition at line 131 of file ioOBJ.hpp.

◆ setBlendV()

void vl::ObjTexture::setBlendV ( bool  on)
inline

-blendv on | off

Definition at line 133 of file ioOBJ.hpp.

◆ setBM()

void vl::ObjTexture::setBM ( float  bm)
inline

-bm mult

Definition at line 153 of file ioOBJ.hpp.

◆ setCC()

void vl::ObjTexture::setCC ( bool  on)
inline

-cc on | off

Definition at line 135 of file ioOBJ.hpp.

◆ setClamp()

void vl::ObjTexture::setClamp ( bool  on)
inline

-clamp on | off

Definition at line 137 of file ioOBJ.hpp.

◆ setImfchan()

void vl::ObjTexture::setImfchan ( char  val)
inline

-imfchan r | g | b | m | l | z

Definition at line 151 of file ioOBJ.hpp.

◆ setMM_Base()

void vl::ObjTexture::setMM_Base ( float  base)
inline

-mm base gain

Definition at line 139 of file ioOBJ.hpp.

◆ setMM_Gain()

void vl::ObjTexture::setMM_Gain ( float  gain)
inline

-mm base gain

Definition at line 141 of file ioOBJ.hpp.

◆ setO_UVW()

void vl::ObjTexture::setO_UVW ( const fvec3 o_uvw)
inline

-o u v w

Definition at line 143 of file ioOBJ.hpp.

◆ setPath()

void vl::ObjTexture::setPath ( const String filename)
inline

Texture file name.

Definition at line 129 of file ioOBJ.hpp.

◆ setS_UVW()

void vl::ObjTexture::setS_UVW ( const fvec3 s_uvw)
inline

-s u v w

Definition at line 145 of file ioOBJ.hpp.

◆ setT_UVW()

void vl::ObjTexture::setT_UVW ( const fvec3 t_uvw)
inline

-t u v w

Definition at line 147 of file ioOBJ.hpp.

◆ setTexres_Value()

void vl::ObjTexture::setTexres_Value ( float  value)
inline

-texres value

Definition at line 149 of file ioOBJ.hpp.

◆ t_UVW()

const fvec3& vl::ObjTexture::t_UVW ( ) const
inline

-t u v w

Definition at line 120 of file ioOBJ.hpp.

◆ texres_Value()

float vl::ObjTexture::texres_Value ( ) const
inline

-texres value

Definition at line 122 of file ioOBJ.hpp.

◆ valid()

bool vl::ObjTexture::valid ( ) const
inline

Definition at line 97 of file ioOBJ.hpp.

Referenced by vl::ObjLoader::loadOBJ().

Member Data Documentation

◆ mBlendU

bool vl::ObjTexture::mBlendU
protected

-blendu on | off

Definition at line 159 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mBlendV

bool vl::ObjTexture::mBlendV
protected

-blendv on | off

Definition at line 161 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mBM

float vl::ObjTexture::mBM
protected

-bm mult

Definition at line 181 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mCC

bool vl::ObjTexture::mCC
protected

-cc on | off

Definition at line 163 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mClamp

bool vl::ObjTexture::mClamp
protected

-clamp on | off

Definition at line 165 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mFileName

String vl::ObjTexture::mFileName
protected

Texture file name.

Definition at line 157 of file ioOBJ.hpp.

Referenced by parseLine(), and print().

◆ mImfchan

char vl::ObjTexture::mImfchan
protected

-imfchan r | g | b | m | l | z

Definition at line 179 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mMM_Base

float vl::ObjTexture::mMM_Base
protected

-mm base gain

Definition at line 167 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mMM_Gain

float vl::ObjTexture::mMM_Gain
protected

-mm base gain

Definition at line 169 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mO_UVW

fvec3 vl::ObjTexture::mO_UVW
protected

-o u v w

Definition at line 171 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mS_UVW

fvec3 vl::ObjTexture::mS_UVW
protected

-s u v w

Definition at line 173 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mT_UVW

fvec3 vl::ObjTexture::mT_UVW
protected

-t u v w

Definition at line 175 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().

◆ mTexres_Value

float vl::ObjTexture::mTexres_Value
protected

-texres value

Definition at line 177 of file ioOBJ.hpp.

Referenced by ObjTexture(), parseLine(), and print().


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