Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
ON_TextureMapping Class Reference

#include <opennurbs_texture_mapping.h>

Inheritance diagram for ON_TextureMapping:
Inheritance graph
[legend]

List of all members.

Public Types

enum  PROJECTION { no_projection = 0, clspt_projection = 1, ray_projection = 2, force_32bit_mapping_projection = 0xFFFFFFFF }
enum  TEXTURE_SPACE { single = 0, divided = 1, force_32bit_texture_space = 0xFFFFFFFF }
enum  TYPE {
  no_mapping = 0, srfp_mapping = 1, plane_mapping = 2, cylinder_mapping = 3,
  sphere_mapping = 4, box_mapping = 5, mesh_mapping_primitive = 6, srf_mapping_primitive = 7,
  brep_mapping_primitive = 8, force_32bit_mapping_type = 0xFFFFFFFF
}

Public Member Functions

void Default ()
void Dump (ON_TextLog &) const
virtual int Evaluate (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const
virtual int Evaluate (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T, const ON_Xform &P_xform, const ON_Xform &N_xform) const
int EvaluateBoxMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const
int EvaluateCylinderMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const
int EvaluatePlaneMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const
int EvaluateSphereMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const
bool GetMappingBox (ON_Plane &plane, ON_Interval &dx, ON_Interval &dy, ON_Interval &dz) const
bool GetMappingCylinder (ON_Cylinder &cylinder) const
bool GetMappingPlane (ON_Plane &plane, ON_Interval &dx, ON_Interval &dy, ON_Interval &dz) const
bool GetMappingSphere (ON_Sphere &sphere) const
bool GetTextureCoordinates (const ON_Mesh &mesh, ON_SimpleArray< ON_3fPoint > &T, const ON_Xform *mesh_xform=0, bool bLazy=false, ON_SimpleArray< int > *Tside=0) const
bool GetTextureCoordinates (const ON_Mesh &mesh, ON_SimpleArray< ON_2fPoint > &T, const ON_Xform *mesh_xform=0, bool bLazy=false, ON_SimpleArray< int > *Tside=0) const
bool HasMatchingTextureCoordinates (const ON_Mesh &mesh, const ON_Xform *object_xform=0) const
bool HasMatchingTextureCoordinates (const class ON_MappingTag &tag, const ON_Xform *object_xform=0) const
bool IsPeriodic (void) const
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
ON__UINT32 MappingCRC () const
virtual ON_UUID ModelObjectId () const
 ON_OBJECT_DECLARE (ON_TextureMapping)
 ON_TextureMapping ()
 ON_TextureMapping (const ON_TextureMapping &src)
ON_TextureMappingoperator= (const ON_TextureMapping &src)
ON_BOOL32 Read (ON_BinaryArchive &binary_archive)
bool RequiresVertexNormals () const
bool ReverseTextureCoordinate (int dir)
bool SetBoxMapping (const ON_Plane &plane, ON_Interval dx, ON_Interval dy, ON_Interval dz, bool bIsCapped)
bool SetCylinderMapping (const ON_Cylinder &cylinder, bool bIsCapped)
bool SetPlaneMapping (const ON_Plane &plane, const ON_Interval &dx, const ON_Interval &dy, const ON_Interval &dz)
bool SetSphereMapping (const ON_Sphere &sphere)
bool SetSurfaceParameterMapping (void)
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_TextureMapping ()

Static Public Member Functions

static PROJECTION ProjectionFromInt (int i)
static TEXTURE_SPACE TextureSpaceFromInt (int i)
static TYPE TypeFromInt (int i)

Public Attributes

bool m_bCapped
ON_UUID m_mapping_id
int m_mapping_index
ON_wString m_mapping_name
ON_Objectm_mapping_primitive
ON_Xform m_Nxyz
PROJECTION m_projection
ON_Xform m_Pxyz
TEXTURE_SPACE m_texture_space
TYPE m_type
ON_Xform m_uvw

Detailed Description

Definition at line 37 of file opennurbs_texture_mapping.h.


Member Enumeration Documentation

Enumerator:
no_projection 
clspt_projection 
ray_projection 
force_32bit_mapping_projection 

Definition at line 609 of file opennurbs_texture_mapping.h.

Enumerator:
single 
divided 
force_32bit_texture_space 

Definition at line 629 of file opennurbs_texture_mapping.h.

Enumerator:
no_mapping 
srfp_mapping 
plane_mapping 
cylinder_mapping 
sphere_mapping 
box_mapping 
mesh_mapping_primitive 
srf_mapping_primitive 
brep_mapping_primitive 
force_32bit_mapping_type 

Definition at line 569 of file opennurbs_texture_mapping.h.


Constructor & Destructor Documentation

Definition at line 1343 of file opennurbs_material.cpp.

Definition at line 1349 of file opennurbs_material.cpp.

Definition at line 1360 of file opennurbs_material.cpp.


Member Function Documentation

Definition at line 1404 of file opennurbs_material.cpp.

void ON_TextureMapping::Dump ( ON_TextLog text_log) const [virtual]

Reimplemented from ON_Object.

Definition at line 1457 of file opennurbs_material.cpp.

int ON_TextureMapping::Evaluate ( const ON_3dPoint P,
const ON_3dVector N,
ON_3dPoint T 
) const [virtual]

Definition at line 2249 of file opennurbs_material.cpp.

int ON_TextureMapping::Evaluate ( const ON_3dPoint P,
const ON_3dVector N,
ON_3dPoint T,
const ON_Xform P_xform,
const ON_Xform N_xform 
) const [virtual]

Definition at line 2224 of file opennurbs_material.cpp.

int ON_TextureMapping::EvaluateBoxMapping ( const ON_3dPoint P,
const ON_3dVector N,
ON_3dPoint T 
) const

Definition at line 2074 of file opennurbs_material.cpp.

int ON_TextureMapping::EvaluateCylinderMapping ( const ON_3dPoint P,
const ON_3dVector N,
ON_3dPoint T 
) const

Definition at line 1863 of file opennurbs_material.cpp.

int ON_TextureMapping::EvaluatePlaneMapping ( const ON_3dPoint P,
const ON_3dVector N,
ON_3dPoint T 
) const

Definition at line 1757 of file opennurbs_material.cpp.

int ON_TextureMapping::EvaluateSphereMapping ( const ON_3dPoint P,
const ON_3dVector N,
ON_3dPoint T 
) const

Definition at line 1795 of file opennurbs_material.cpp.

bool ON_TextureMapping::GetMappingBox ( ON_Plane plane,
ON_Interval dx,
ON_Interval dy,
ON_Interval dz 
) const

Definition at line 5153 of file opennurbs_material.cpp.

Definition at line 5161 of file opennurbs_material.cpp.

bool ON_TextureMapping::GetMappingPlane ( ON_Plane plane,
ON_Interval dx,
ON_Interval dy,
ON_Interval dz 
) const

Definition at line 5096 of file opennurbs_material.cpp.

Definition at line 5178 of file opennurbs_material.cpp.

bool ON_TextureMapping::GetTextureCoordinates ( const ON_Mesh mesh,
ON_SimpleArray< ON_3fPoint > &  T,
const ON_Xform mesh_xform = 0,
bool  bLazy = false,
ON_SimpleArray< int > *  Tside = 0 
) const

Definition at line 2588 of file opennurbs_material.cpp.

bool ON_TextureMapping::GetTextureCoordinates ( const ON_Mesh mesh,
ON_SimpleArray< ON_2fPoint > &  T,
const ON_Xform mesh_xform = 0,
bool  bLazy = false,
ON_SimpleArray< int > *  Tside = 0 
) const

Definition at line 2798 of file opennurbs_material.cpp.

bool ON_TextureMapping::HasMatchingTextureCoordinates ( const ON_Mesh mesh,
const ON_Xform object_xform = 0 
) const

Definition at line 2395 of file opennurbs_material.cpp.

bool ON_TextureMapping::HasMatchingTextureCoordinates ( const class ON_MappingTag tag,
const ON_Xform object_xform = 0 
) const
bool ON_TextureMapping::IsPeriodic ( void  ) const

Definition at line 2390 of file opennurbs_material.cpp.

ON_BOOL32 ON_TextureMapping::IsValid ( ON_TextLog text_log = NULL) const [virtual]

Implements ON_Object.

Definition at line 1425 of file opennurbs_material.cpp.

Definition at line 2292 of file opennurbs_material.cpp.

Reimplemented from ON_Object.

Definition at line 1615 of file opennurbs_object.cpp.

ON_TextureMapping & ON_TextureMapping::operator= ( const ON_TextureMapping src)

Definition at line 1378 of file opennurbs_material.cpp.

Definition at line 1309 of file opennurbs_material.cpp.

ON_BOOL32 ON_TextureMapping::Read ( ON_BinaryArchive binary_archive) [virtual]

Reimplemented from ON_Object.

Definition at line 1432 of file opennurbs_mesh.cpp.

Definition at line 2374 of file opennurbs_material.cpp.

Definition at line 1541 of file opennurbs_material.cpp.

bool ON_TextureMapping::SetBoxMapping ( const ON_Plane plane,
ON_Interval  dx,
ON_Interval  dy,
ON_Interval  dz,
bool  bIsCapped 
)

Definition at line 5033 of file opennurbs_material.cpp.

bool ON_TextureMapping::SetCylinderMapping ( const ON_Cylinder cylinder,
bool  bIsCapped 
)

Definition at line 5049 of file opennurbs_material.cpp.

bool ON_TextureMapping::SetPlaneMapping ( const ON_Plane plane,
const ON_Interval dx,
const ON_Interval dy,
const ON_Interval dz 
)

Definition at line 4906 of file opennurbs_material.cpp.

Definition at line 5083 of file opennurbs_material.cpp.

Definition at line 4897 of file opennurbs_material.cpp.

unsigned int ON_TextureMapping::SizeOf ( ) const [virtual]

Reimplemented from ON_Object.

Definition at line 1534 of file opennurbs_material.cpp.

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

Definition at line 1555 of file opennurbs_material.cpp.

Definition at line 1327 of file opennurbs_material.cpp.

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

Definition at line 1569 of file opennurbs_material.cpp.

Definition at line 1273 of file opennurbs_material.cpp.

ON_BOOL32 ON_TextureMapping::Write ( ON_BinaryArchive binary_archive) const [virtual]

Reimplemented from ON_Object.

Definition at line 1382 of file opennurbs_mesh.cpp.


Member Data Documentation

Definition at line 646 of file opennurbs_texture_mapping.h.

Definition at line 544 of file opennurbs_texture_mapping.h.

Definition at line 552 of file opennurbs_texture_mapping.h.

Definition at line 556 of file opennurbs_texture_mapping.h.

Definition at line 666 of file opennurbs_texture_mapping.h.

Definition at line 659 of file opennurbs_texture_mapping.h.

Definition at line 617 of file opennurbs_texture_mapping.h.

Definition at line 658 of file opennurbs_texture_mapping.h.

Definition at line 640 of file opennurbs_texture_mapping.h.

Definition at line 585 of file opennurbs_texture_mapping.h.

Definition at line 663 of file opennurbs_texture_mapping.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:52