Visualization Library v1.0.3

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

vl::ObjTexture Class Reference

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

#include <ioOBJ.hpp>

List of all members.

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.
const Stringpath () const
 Texture file name.
bool blendU () const
 -blendu on | off
bool blendV () const
 -blendv on | off
bool cc () const
 -cc on | off
bool clamp () const
 -clamp on | off
float mm_Base () const
 -mm base gain
float mm_Gain () const
 -mm base gain
const fvec3o_UVW () const
 -o u v w
const fvec3s_UVW () const
 -s u v w
const fvec3t_UVW () const
 -t u v w
float texres_Value () const
 -texres value
char imfchan () const
 -imfchan r | g | b | m | l | z
float bm () const
 -bm mult
void setPath (const String &filename)
 Texture file name.
void setBlendU (bool on)
 -blendu on | off
void setBlendV (bool on)
 -blendv on | off
void setCC (bool on)
 -cc on | off
void setClamp (bool on)
 -clamp on | off
void setMM_Base (float base)
 -mm base gain
void setMM_Gain (float gain)
 -mm base gain
void setO_UVW (const fvec3 &o_uvw)
 -o u v w
void setS_UVW (const fvec3 &s_uvw)
 -s u v w
void setT_UVW (const fvec3 &t_uvw)
 -t u v w
void setTexres_Value (float value)
 -texres value
void setImfchan (char val)
 -imfchan r | g | b | m | l | z
void setBM (float bm)
 -bm mult

Protected Attributes

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

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 (  )

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.


Member Function Documentation

const ObjTexture & ObjTexture::parseLine ( const String line,
const String file 
)
bool vl::ObjTexture::valid (  ) const [inline]

Definition at line 97 of file ioOBJ.hpp.

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, and vl::String::toStdString().

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

Texture file name.

Definition at line 102 of file ioOBJ.hpp.

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

-blendu on | off

Definition at line 104 of file ioOBJ.hpp.

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

-blendv on | off

Definition at line 106 of file ioOBJ.hpp.

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

-cc on | off

Definition at line 108 of file ioOBJ.hpp.

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

-clamp on | off

Definition at line 110 of file ioOBJ.hpp.

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

-mm base gain

Definition at line 112 of file ioOBJ.hpp.

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

-mm base gain

Definition at line 114 of file ioOBJ.hpp.

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

-o u v w

Definition at line 116 of file ioOBJ.hpp.

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

-s u v w

Definition at line 118 of file ioOBJ.hpp.

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

-t u v w

Definition at line 120 of file ioOBJ.hpp.

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

-texres value

Definition at line 122 of file ioOBJ.hpp.

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

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

Definition at line 124 of file ioOBJ.hpp.

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

-bm mult

Definition at line 126 of file ioOBJ.hpp.

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

Texture file name.

Definition at line 129 of file ioOBJ.hpp.

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

-blendu on | off

Definition at line 131 of file ioOBJ.hpp.

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

-blendv on | off

Definition at line 133 of file ioOBJ.hpp.

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

-cc on | off

Definition at line 135 of file ioOBJ.hpp.

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

-clamp on | off

Definition at line 137 of file ioOBJ.hpp.

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

-mm base gain

Definition at line 139 of file ioOBJ.hpp.

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

-mm base gain

Definition at line 141 of file ioOBJ.hpp.

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

-o u v w

Definition at line 143 of file ioOBJ.hpp.

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

-s u v w

Definition at line 145 of file ioOBJ.hpp.

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

-t u v w

Definition at line 147 of file ioOBJ.hpp.

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

-texres value

Definition at line 149 of file ioOBJ.hpp.

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

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

Definition at line 151 of file ioOBJ.hpp.

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

-bm mult

Definition at line 153 of file ioOBJ.hpp.


Member Data Documentation

Texture file name.

Definition at line 157 of file ioOBJ.hpp.

Referenced by parseLine(), and print().

bool vl::ObjTexture::mBlendU [protected]

-blendu on | off

Definition at line 159 of file ioOBJ.hpp.

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

bool vl::ObjTexture::mBlendV [protected]

-blendv on | off

Definition at line 161 of file ioOBJ.hpp.

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

bool vl::ObjTexture::mCC [protected]

-cc on | off

Definition at line 163 of file ioOBJ.hpp.

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

bool vl::ObjTexture::mClamp [protected]

-clamp on | off

Definition at line 165 of file ioOBJ.hpp.

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

float vl::ObjTexture::mMM_Base [protected]

-mm base gain

Definition at line 167 of file ioOBJ.hpp.

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

float vl::ObjTexture::mMM_Gain [protected]

-mm base gain

Definition at line 169 of file ioOBJ.hpp.

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

-o u v w

Definition at line 171 of file ioOBJ.hpp.

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

-s u v w

Definition at line 173 of file ioOBJ.hpp.

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

-t u v w

Definition at line 175 of file ioOBJ.hpp.

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

float vl::ObjTexture::mTexres_Value [protected]

-texres value

Definition at line 177 of file ioOBJ.hpp.

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

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().

float vl::ObjTexture::mBM [protected]

-bm mult

Definition at line 181 of file ioOBJ.hpp.

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


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.