QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Texture Class Reference

#include <opennurbs_texture.h>

Inheritance diagram for ON_Texture:
ON_Object

Public Types

enum  FILTER { nearest_filter = 0 , linear_filter = 1 , force_32bit_texture_filter = 0xFFFFFFF }
 
enum  MAPPING_CHANNEL { tc_channel = 0 , default_channel = 1 , srfp_channel = 0xFFFFFFFE , emap_channel = (long)0xFFFFFFFF }
 
enum  MODE {
  no_texture_mode = 0 , modulate_texture = 1 , decal_texture = 2 , blend_texture = 3 ,
  force_32bit_texture_mode = 0xFFFFFFF
}
 
enum  TYPE {
  no_texture_type = 0 , bitmap_texture = 1 , bump_texture = 2 , transparency_texture = 3 ,
  emap_texture = 86 , force_32bit_texture_type = 0xFFFFFFF
}
 
enum  WRAP { repeat_wrap = 0 , clamp_wrap = 1 , force_32bit_texture_wrap = 0xFFFFFFF }
 

Public Member Functions

int Compare (const ON_Texture &other) const
 
void Default ()
 
void Dump (ON_TextLog &) const
 
bool IsTiled (int dir, double *count, double *offset) const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
 ON_OBJECT_DECLARE (ON_Texture)
 
 ON_Texture ()
 
ON_BOOL32 Read (ON_BinaryArchive &binary_archive)
 
bool ReverseTextureCoordinate (int dir)
 
unsigned int SizeOf () const
 
bool SwapTextureCoordinate (int i, int j)
 
bool TileTextureCoordinate (int dir, double count, double offset)
 
ON_BOOL32 Write (ON_BinaryArchive &binary_archive) const
 
 ~ON_Texture ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
virtual ON::object_type ObjectType () const
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Static Public Member Functions

static FILTER FilterFromInt (int i)
 
static MODE ModeFromInt (int i)
 
static TYPE TypeFromInt (int i)
 
static WRAP WrapFromInt (int i)
 

Public Attributes

bool m_bApply_uvw
 
double m_blend_A [4]
 
double m_blend_constant_A
 
ON_Color m_blend_constant_RGB
 
int m_blend_order
 
double m_blend_RGB [4]
 
bool m_bOn
 
ON_Color m_border_color
 
ON_Interval m_bump_scale
 
ON_wString m_filename
 
bool m_filename_bRelativePath
 
FILTER m_magfilter
 
int m_mapping_channel_id
 
FILTER m_minfilter
 
MODE m_mode
 
const void * m_runtime_ptr
 
ON_UUID m_runtime_ptr_id
 
ON_UUID m_texture_id
 
ON_UUID m_transparency_texture_id
 
ON_Color m_transparent_color
 
TYPE m_type
 
ON_Xform m_uvw
 
WRAP m_wrapu
 
WRAP m_wrapv
 
WRAP m_wrapw
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Member Enumeration Documentation

◆ FILTER

Enumerator
nearest_filter 
linear_filter 
force_32bit_texture_filter 

◆ MAPPING_CHANNEL

Enumerator
tc_channel 
default_channel 
srfp_channel 
emap_channel 

◆ MODE

Enumerator
no_texture_mode 
modulate_texture 
decal_texture 
blend_texture 
force_32bit_texture_mode 

◆ TYPE

Enumerator
no_texture_type 
bitmap_texture 
bump_texture 
transparency_texture 
emap_texture 
force_32bit_texture_type 

◆ WRAP

Enumerator
repeat_wrap 
clamp_wrap 
force_32bit_texture_wrap 

Constructor & Destructor Documentation

◆ ON_Texture()

ON_Texture::ON_Texture ( )

◆ ~ON_Texture()

ON_Texture::~ON_Texture ( )

Member Function Documentation

◆ Compare()

int ON_Texture::Compare ( const ON_Texture & other) const

◆ Default()

void ON_Texture::Default ( )

◆ Dump()

void ON_Texture::Dump ( ON_TextLog & ) const
virtual

Reimplemented from ON_Object.

◆ FilterFromInt()

ON_Texture::FILTER ON_Texture::FilterFromInt ( int i)
static

◆ IsTiled()

bool ON_Texture::IsTiled ( int dir,
double * count,
double * offset ) const

◆ IsValid()

ON_BOOL32 ON_Texture::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ ModeFromInt()

ON_Texture::MODE ON_Texture::ModeFromInt ( int i)
static

◆ ON_OBJECT_DECLARE()

ON_Texture::ON_OBJECT_DECLARE ( ON_Texture )

◆ Read()

ON_BOOL32 ON_Texture::Read ( ON_BinaryArchive & binary_archive)
virtual

Reimplemented from ON_Object.

◆ ReverseTextureCoordinate()

bool ON_Texture::ReverseTextureCoordinate ( int dir)

◆ SizeOf()

unsigned int ON_Texture::SizeOf ( ) const
virtual

Reimplemented from ON_Object.

◆ SwapTextureCoordinate()

bool ON_Texture::SwapTextureCoordinate ( int i,
int j )

◆ TileTextureCoordinate()

bool ON_Texture::TileTextureCoordinate ( int dir,
double count,
double offset )

◆ TypeFromInt()

ON_Texture::TYPE ON_Texture::TypeFromInt ( int i)
static

◆ WrapFromInt()

ON_Texture::WRAP ON_Texture::WrapFromInt ( int i)
static

◆ Write()

ON_BOOL32 ON_Texture::Write ( ON_BinaryArchive & binary_archive) const
virtual

Reimplemented from ON_Object.

Member Data Documentation

◆ m_bApply_uvw

bool ON_Texture::m_bApply_uvw

◆ m_blend_A

double ON_Texture::m_blend_A[4]

◆ m_blend_constant_A

double ON_Texture::m_blend_constant_A

◆ m_blend_constant_RGB

ON_Color ON_Texture::m_blend_constant_RGB

◆ m_blend_order

int ON_Texture::m_blend_order

◆ m_blend_RGB

double ON_Texture::m_blend_RGB[4]

◆ m_bOn

bool ON_Texture::m_bOn

◆ m_border_color

ON_Color ON_Texture::m_border_color

◆ m_bump_scale

ON_Interval ON_Texture::m_bump_scale

◆ m_filename

ON_wString ON_Texture::m_filename

◆ m_filename_bRelativePath

bool ON_Texture::m_filename_bRelativePath

◆ m_magfilter

FILTER ON_Texture::m_magfilter

◆ m_mapping_channel_id

int ON_Texture::m_mapping_channel_id

◆ m_minfilter

FILTER ON_Texture::m_minfilter

◆ m_mode

MODE ON_Texture::m_mode

◆ m_runtime_ptr

const void* ON_Texture::m_runtime_ptr

◆ m_runtime_ptr_id

ON_UUID ON_Texture::m_runtime_ptr_id

◆ m_texture_id

ON_UUID ON_Texture::m_texture_id

◆ m_transparency_texture_id

ON_UUID ON_Texture::m_transparency_texture_id

◆ m_transparent_color

ON_Color ON_Texture::m_transparent_color

◆ m_type

TYPE ON_Texture::m_type

◆ m_uvw

ON_Xform ON_Texture::m_uvw

◆ m_wrapu

WRAP ON_Texture::m_wrapu

◆ m_wrapv

WRAP ON_Texture::m_wrapv

◆ m_wrapw

WRAP ON_Texture::m_wrapw

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