23 #if !defined(OPENNURBS_TEXTURE_INC_) 24 #define OPENNURBS_TEXTURE_INC_ 73 static ON_Xform GetPictureShrinkSurfaceTransformation(
106 static ON_Xform GetPictureShrinkSurfaceTransformation(
141 static ON_Xform GetPictureShrinkSurfaceTransformation(
156 unsigned int SizeOf()
const override;
185 bool ReverseTextureCoordinate(
int dir );
198 bool SwapTextureCoordinate(
int i,
int j );
213 bool TileTextureCoordinate(
int dir,
double count,
double offset );
226 bool IsTiled(
int dir,
double* count,
double* offset )
const;
229 ON_UUID m_texture_id = ON_nil_uuid;
236 default_channel = 1U,
238 screen_based_channel = 0xFFFFFFF1U,
239 wcs_channel = 0xFFFFFFF2U,
240 wcs_box_channel = 0xFFFFFFF3U,
241 environment_map_box_channel = 0xFFFFFFF4U,
242 environment_map_light_probe_channel = 0xFFFFFFF5U,
243 environment_map_spherical_channel = 0xFFFFFFF6U,
244 environment_map_cube_map_channel = 0xFFFFFFF7U,
245 environment_map_vcross_cube_map_channel = 0xFFFFFFF8U,
246 environment_map_hcross_cube_map_channel = 0xFFFFFFF9U,
247 environment_map_hemispherical_channel = 0xFFFFFFFAU,
248 environment_map_emap_channel = 0xFFFFFFFFU,
250 srfp_channel = 0xFFFFFFFEU,
251 emap_channel = 0xFFFFFFFFU
255 unsigned int mapping_channel_as_unsigned
257 static bool IsBuiltInMappingChannel(
258 unsigned int mapping_channel_id
272 void SetBuiltInMappingChannel(
275 void SetMappingChannel(
276 unsigned int mapping_channel_id
278 unsigned int m_mapping_channel_id = 0;
295 enum class TYPE : unsigned int
297 no_texture_type = 0U,
301 transparency_texture = 3U,
308 unsigned int type_as_unsigned
315 enum class MODE : unsigned int
318 modulate_texture = 1,
326 unsigned int mode_as_unsigned
338 unsigned int filter_as_unsigned
358 unsigned int wrap_as_unsigned
371 ON_Color m_border_color = ON_UNSET_COLOR;
389 ON_Color m_transparent_color = ON_UNSET_COLOR;
412 ON_UUID m_transparency_texture_id = ON_nil_uuid;
437 double m_blend_constant_A = 1.0;
439 double m_blend_A0 = 1.0;
440 double m_blend_A1 = 1.0;
441 double m_blend_A2 = 0.0;
442 double m_blend_A3 = 0.0;
446 double m_blend_RGB0 = 1.0;
447 double m_blend_RGB1 = 1.0;
448 double m_blend_RGB2 = 0.0;
449 double m_blend_RGB3 = 0.0;
455 int m_blend_order = 0;
458 #if defined(ON_DLL_TEMPLATE) MODE
Definition: opennurbs_texture.h:317
ON_UUID is a 16 byte universally unique identifier.
Definition: opennurbs_uuid.h:32
MAPPING_CHANNEL
list of pre-defined channel ids
Definition: opennurbs_texture.h:234
static const ON_Interval ZeroToOne
Definition: opennurbs_point.h:50
Definition: opennurbs_sha1.h:19
Definition: opennurbs_color.h:24
virtual unsigned int SizeOf() const
FILTER
Definition: opennurbs_texture.h:333
virtual void Dump(ON_TextLog &) const
Creates a text dump of the object.
ON_Object & operator=(const ON_Object &)
WRAP
Definition: opennurbs_texture.h:353
virtual bool IsValid(class ON_TextLog *text_log=nullptr) const
Tests an object to see if its data members are correctly initialized.
Definition: opennurbs_brep.h:1472
Pure virtual base class for all classes that must provide runtime class id or support object level 3D...
Definition: opennurbs_object.h:460
TYPE
Definition: opennurbs_texture.h:297
Definition: opennurbs_textlog.h:20
Definition: opennurbs_archive.h:1783
virtual bool Read(ON_BinaryArchive &binary_archive)
Low level archive writing tool used by ON_BinaryArchive::ReadObject().
static const ON_FileReference Unset
Definition: opennurbs_file_utilities.h:1128
virtual bool Write(ON_BinaryArchive &binary_archive) const
Low level archive writing tool used by ON_BinaryArchive::WriteObject().
Definition: opennurbs_texture.h:31
Definition: opennurbs_surface.h:57
static const ON_Texture Default
Definition: opennurbs_texture.h:42
Definition: opennurbs_file_utilities.h:1125
Definition: opennurbs_point.h:46
static const ON_Color Black
Definition: opennurbs_color.h:33