|
| ON_TextureMapping () ON_NOEXCEPT |
|
| ON_TextureMapping (const ON_TextureMapping &src) |
|
virtual | ~ON_TextureMapping () |
|
const ON_Brep * | CustomMappingBrepPrimitive (void) const |
|
const ON_Mesh * | CustomMappingMeshPrimitive (void) const |
|
const ON_Object * | CustomMappingPrimitive (void) const |
|
const ON_Surface * | CustomMappingSurfacePrimitive (void) const |
|
void | Dump (ON_TextLog &) const override |
|
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 | EvaluateBrepMapping (const ON_3dPoint &P, const ON_3dVector &N, const ON_Brep *brep, ON_3dPoint *T) const |
|
int | EvaluateCylinderMapping (const ON_3dPoint &P, const ON_3dVector &N, ON_3dPoint *T) const |
|
int | EvaluateMeshMapping (const ON_3dPoint &P, const ON_3dVector &N, const ON_Mesh *mesh, 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 |
|
int | EvaluateSurfaceMapping (const ON_3dPoint &P, const ON_3dVector &N, const ON_Surface *srf, 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_2fPoint > &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_3fPoint > &T, const ON_Xform *mesh_xform=0, bool bLazy=false, ON_SimpleArray< int > *Tside=0) const |
|
bool | HasMatchingCachedTextureCoordinates (const ON_Mesh &mesh, const ON_Xform *object_xform=nullptr) const |
|
bool | HasMatchingTextureCoordinates (const class ON_MappingTag &tag, const ON_Xform *object_xform=nullptr) const |
|
bool | HasMatchingTextureCoordinates (const ON_Mesh &mesh, const ON_Xform *object_xform=nullptr) const |
|
bool | IsPeriodic (void) const |
|
bool | IsValid (class ON_TextLog *text_log=nullptr) const override |
|
ON__UINT32 | MappingCRC () const |
|
ON_TextureMapping & | operator= (const ON_TextureMapping &src) |
|
bool | Read (ON_BinaryArchive &binary_archive) override |
|
bool | RequiresVertexNormals () const |
|
bool | ReverseTextureCoordinate (int dir) |
|
bool | SetBoxMapping (const ON_Plane &plane, ON_Interval dx, ON_Interval dy, ON_Interval dz, bool bIsCapped) |
|
void | SetCustomMappingPrimitive (ON_Object *) |
|
bool | SetCylinderMapping (const ON_Cylinder &cylinder, bool bIsCapped) |
|
bool | SetOcsMapping (const ON_Plane &plane) |
|
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) |
|
const std::shared_ptr< const ON_Object > & | SharedCustomMappingPrimitive (void) const |
|
unsigned int | SizeOf () const override |
|
bool | SwapTextureCoordinate (int i, int j) |
|
bool | TileTextureCoordinate (int dir, double count, double offset) |
|
bool | Write (ON_BinaryArchive &binary_archive) const override |
|
| ON_ModelComponent () ON_NOEXCEPT |
|
| ON_ModelComponent (const ON_ModelComponent &source) |
|
| ON_ModelComponent (ON_ModelComponent::Type component_type) ON_NOEXCEPT |
|
| ON_ModelComponent (ON_ModelComponent::Type component_type, const ON_ModelComponent &source) ON_NOEXCEPT |
| Locked status of source attributes is not copied to permit copy and modify operations. More...
|
|
| ~ON_ModelComponent ()=default |
|
bool | ChangeName (const wchar_t *new_name, class ON_ComponentManifest *manifest) |
|
bool | ClearComponentType () |
|
bool | ClearId () |
|
bool | ClearIndex () |
|
unsigned int | ClearModelComponentAttributes (unsigned int attributes_filter) |
|
bool | ClearModelComponentStatus () |
|
bool | ClearModelSerialNumber () |
|
bool | ClearName () |
|
bool | ClearParentId () |
|
int | CompareName (const ON_UUID &other_parent_id, const wchar_t *other_name) const |
|
int | CompareName (const wchar_t *other_name) const |
|
int | CompareNameExact (const ON_UUID &other_parent_id, const wchar_t *other_name) const |
|
int | CompareNameExact (const wchar_t *other_name) const |
|
ON_ModelComponent::Type | ComponentType () const |
|
bool | ComponentTypeIsLocked () const |
|
bool | ComponentTypeIsSet () const |
|
ON__UINT64 | ContentVersionNumber () const |
|
unsigned int | CopyFrom (const ON_ModelComponent &src, unsigned int attributes_filter) |
|
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const override |
|
const ON_wString | DeletedName () const |
|
const ON_NameHash & | DeletedNameHash () const |
|
bool | DeletedNameIsSet () const |
|
bool | DeleteName () |
|
bool | EraseIdentification (bool bIgnoreLocks) |
|
const wchar_t * | GetName (ON_wString &component_name) const |
|
const ON_UUID & | Id () const |
|
bool | IdIsLocked () const |
|
bool | IdIsNil () const |
|
bool | IdIsNotNil () const |
|
bool | IdIsSet () const |
|
const ON_UUID & | IfIdIsNilSetId () |
|
int | Index () const |
|
int | Index (int unset_index_value) const |
|
bool | IndexIsLocked () const |
|
bool | IndexIsSet () const |
|
unsigned int | InstanceDefinitionModelSerialNumber () const |
|
bool | IsDeleted () const |
|
bool | IsHidden () const |
|
bool | IsLocked () const |
|
bool | IsReferenceComponent () const |
|
bool | IsSystemComponent () const |
|
void | LockAllSettingsExceptName () |
|
void | LockComponentType () |
|
void | LockId () |
|
void | LockIndex () |
|
void | LockModelComponentStatus () |
|
void | LockModelSerialNumber () |
|
void | LockName () |
|
void | LockParentId () |
|
ON_ComponentStatus | ModelComponentStatus () const |
|
bool | ModelComponentStatusIsLocked () const |
|
bool | ModelComponentStatusIsSet () const |
|
ON_UUID | ModelObjectId () const override |
|
unsigned int | ModelSerialNumber () const |
|
bool | ModelSerialNumberIsLocked () const |
|
bool | ModelSerialNumberIsSet () const |
|
const ON_wString | Name () const |
|
const wchar_t * | NameAsPointer () const |
|
const ON_NameHash & | NameHash () const |
|
bool | NameIsEmpty () const |
|
bool | NameIsLocked () const |
|
bool | NameIsNotEmpty () const |
|
bool | NameIsSet () const |
|
const ON_NameHash | NewNameHash (const wchar_t *new_name) const |
|
ON_ModelComponent & | operator= (const ON_ModelComponent &source) |
|
const ON_UUID & | ParentId () const |
|
bool | ParentIdIsLocked () const |
|
bool | ParentIdIsNil () const |
|
bool | ParentIdIsNotNil () const |
|
bool | ParentIdIsSet () const |
|
bool | ReadModelComponentAttributes (class ON_BinaryArchive &archive) |
|
unsigned int | ReferenceModelSerialNumber () const |
|
ON__UINT64 | RuntimeSerialNumber () const |
|
const ON_UUID & | SetAndLockId () |
|
bool | SetAsSystemComponent () |
|
bool | SetAsUnsetSystemComponent () |
|
bool | SetComponentType (ON_ModelComponent::Type component_component_type) |
|
bool | SetDeletedModelComponentState (bool bDeleted, class ON_ComponentManifest *manifest) |
|
void | SetHiddenModelComponentState (bool bHidden) |
|
const ON_UUID & | SetId () |
|
bool | SetId (const ON_UUID &component_id) |
|
bool | SetIdentification (const class ON_ComponentManifestItem &manifest_item, const wchar_t *manifest_name, bool bSetId, bool bParentId, bool bSetName, bool bSetIndex) |
|
bool | SetIndex (int component_index) |
|
bool | SetLocalizedSystemComponentName (const wchar_t *system_component_localized_name) |
|
void | SetLockedModelComponentState (bool bLocked) |
|
bool | SetModelComponentStatus (ON_ComponentStatus component_status) |
|
bool | SetModelSerialNumber (unsigned int model_serial_number) |
|
bool | SetModelSerialNumber (unsigned int model_serial_number, unsigned int reference_model_serial_number, unsigned int instance_definition_model_serial_number) |
|
bool | SetName (const wchar_t *component_name) |
|
bool | SetParentId (const ON_UUID &parent_id) |
|
bool | UndeleteName () |
|
bool | WriteModelComponentAttributes (class ON_BinaryArchive &archive, unsigned int attributes_filter) const |
|
| ON_Object () ON_NOEXCEPT |
|
| ON_Object (const ON_Object &) |
|
virtual | ~ON_Object () |
|
virtual ON_AggregateComponentStatus | AggregateComponentStatus () const |
|
bool | AttachUserData (class ON_UserData *pUserData) |
|
unsigned int | ClearAllComponentStates () const |
|
virtual unsigned int | ClearComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_clear) const |
|
virtual unsigned int | ClearComponentStates (ON_ComponentStatus states_to_clear) const |
|
void | CopyUserData (const ON_Object &source_object) |
|
unsigned int | CopyUserData (const ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution) |
|
virtual bool | DeleteComponents (const ON_COMPONENT_INDEX *ci_list, size_t ci_count) |
|
virtual void | DestroyRuntimeCache (bool bDelete=true) |
|
bool | DetachUserData (class ON_UserData *pUserData) |
|
void | EmergencyDestroy () |
|
class ON_UserData * | FirstUserData () const |
|
virtual unsigned int | GetComponentsWithSetStates (ON_ComponentStatus states_filter, bool bAllEqualStates, ON_SimpleArray< ON_COMPONENT_INDEX > &components) const |
|
class ON_UserData * | GetUserData (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 |
|
bool | IsCorrupt (bool bRepair, bool bSilentError, class ON_TextLog *text_log) const |
|
bool | IsKindOf (const ON_ClassId *pClassId) const |
|
virtual void | MarkAggregateComponentStatusAsNotCurrent () const |
|
virtual void | MemoryRelocate () |
|
void | MoveUserData (ON_Object &source_object) |
|
unsigned int | MoveUserData (ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution, bool bDeleteAllSourceItems) |
|
virtual ON::object_type | ObjectType () const |
|
ON_Object & | operator= (const ON_Object &) |
|
void | PurgeUserData () |
|
virtual unsigned int | SetComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_set) const |
|
virtual unsigned int | SetComponentStatus (ON_COMPONENT_INDEX component_index, ON_ComponentStatus status_to_copy) const |
|
bool | SetUserString (const wchar_t *key, const wchar_t *string_value) |
|
int | SetUserStrings (int count, const ON_UserString *user_strings, bool bReplace) |
|
bool | ThisIsNullptr (bool bSilentError) const |
|
void | TransformUserData (const class ON_Xform &xform) |
|
virtual bool | UpdateReferencedComponents (const class ON_ComponentManifest &source_manifest, const class ON_ComponentManifest &destination_manifest, const class ON_ManifestMap &manifest_map) |
|
int | UserStringCount () const |
|
|
static const ON_TextureMapping * | FromModelComponentRef (const class ON_ModelComponentReference &model_component_reference, const ON_TextureMapping *none_return_value) |
|
static ON_TextureMapping::PROJECTION | ProjectionFromUnsigned (unsigned int projection_as_unsigned) |
|
static const ON_wString | ProjectionToString (ON_TextureMapping::PROJECTION texture_mapping_projection) |
|
static void | SetAdvancedBrepMappingToolFunctions (TEXMAP_INTERSECT_LINE_SURFACE, TEXMAP_BREP_FACE_CLOSEST_POINT) |
|
static void | SetAdvancedGetTextureMappingFromDocumentFunction (GET_TEXMAP_FROM_DOCUMENT) |
|
static const ON_wString | SpaceToString (ON_TextureMapping::TEXTURE_SPACE texture_mapping_space) |
|
static ON_TextureMapping::TEXTURE_SPACE | TextureSpaceFromUnsigned (unsigned int texture_space_as_unsigned) |
|
static ON_TextureMapping::TYPE | TypeFromUnsigned (unsigned int type_as_unsigned) |
|
static const ON_wString | TypeToString (ON_TextureMapping::TYPE texture_mapping_type) |
|
static int | CompareId (const ON_ModelComponent &a, const ON_ModelComponent &b) |
|
static int | CompareIdAndName (const ON_ModelComponent &a, const ON_ModelComponent &b) |
|
static int | CompareName (const ON_ModelComponent &a, const ON_ModelComponent &b) |
|
static int | CompareNameAndId (const ON_ModelComponent &a, const ON_ModelComponent &b) |
|
static int | CompareNameExact (const ON_ModelComponent &a, const ON_ModelComponent &b) |
|
static ON_ModelComponent::Type | ComponentTypeFromUnsigned (unsigned int component_type_as_unsigned) |
|
static bool | ComponentTypeIsValid (ON_ModelComponent::Type component_type) |
|
static bool | ComponentTypeIsValidAndNotMixed (ON_ModelComponent::Type component_type) |
|
static const ON_wString | ComponentTypeToString (ON_ModelComponent::Type) |
|
static bool | IndexRequired (ON_ModelComponent::Type component_type) |
|
static unsigned int | Internal_SystemComponentHelper () |
| For internal use. Never call this function. More...
|
|
static const wchar_t * | IsNamePathSeparator (const wchar_t *s) |
|
*static const wchar_t * | IsReferencePrefixDelimiter (const wchar_t *s) |
|
static const wchar_t * | IsReferencePrefixSeparator (const wchar_t *s) |
|
static bool | IsValidComponentName (const class ON_ComponentManifest &model_manfest, const ON_ModelComponent &model_component, bool bPermitReferencePrefix, ON_wString &valid_name) |
|
static bool | IsValidComponentName (const ON_wString &candidate_component_name) |
|
static bool | IsValidComponentName (const wchar_t *candidate_component_name) |
|
static bool | IsValidComponentName (size_t length, const wchar_t *candidate_component_name) |
|
static bool | IsValidComponentNameFirstCodePoint (int length, const wchar_t *candidate_component_name) |
|
static bool | IsValidComponentNameFirstCodePoint (ON__UINT32 unicode_code_point) |
|
static const ON_wString | NameLeaf (const wchar_t *name) |
|
static const ON_wString | NameParent (const wchar_t *name, bool bIncludeReference) |
|
static const ON_wString | NameReferencePrefix (const wchar_t *name) |
|
static ON__UINT64 | NextRuntimeSerialNumber () |
|
static const ON_wString | RemoveAllReferencePrefixDelimiters (const wchar_t *name) |
|
static const ON_wString | RemoveReferencePrefix (const wchar_t *name) |
|
static const ON_wString | RemoveTrailingNamePathSeparator (const wchar_t *name) |
|
static const ON_wString | RemoveTrailingReferencePrefixDelimiter (const wchar_t *name) |
|
static const ON_wString | RemoveTrailingReferencePrefixSeparator (const wchar_t *name) |
|
static void | SplitName (const wchar_t *name, ON_wString &reference_prefix, ON_wString &name_parent, ON_wString &name_leaf) |
|
static bool | UniqueNameIgnoresCase (ON_ModelComponent::Type component_type) |
|
static bool | UniqueNameIncludesParent (ON_ModelComponent::Type component_type) |
|
static bool | UniqueNameRequired (ON_ModelComponent::Type component_type) |
|
Description: Create a box projection texture mapping. Parameters: plane - [in]
The sides of the box the box are parallel to the plane's coordinate planes. The dx, dy, dz intervals determine the location of the sides. dx - [in] Determines the location of the front and back planes. The vector plane.xaxis is perpendicular to these planes and they pass through plane.PointAt(dx[0],0,0) and plane.PointAt(dx[1],0,0), respectively. dy - [in] Determines the location of the left and right planes. The vector plane.yaxis is perpendicular to these planes and they pass through plane.PointAt(0,dy[0],0) and plane.PointAt(0,dy[1],0), respectively. dz - [in] Determines the location of the top and bottom planes. The vector plane.zaxis is perpendicular to these planes and they pass through plane.PointAt(0,0,dz[0]) and plane.PointAt(0,0,dz[1]), respectively. bIsCapped - [in] If true, the box is treated as a finite capped box.
Returns: True if input is valid. Remarks: When m_texture_space = divided, the box is mapped to texture space as follows:
If the box is not capped, then each side maps to 1/4 of the texture map.
v=1+---------+---------+---------+---------+
| x=dx[1] | y=dy[1] | x=dx[0] | y=dy[0] |
| Front | Right | Back | Left |
| --y-> | <-x-- | <-y-- | --x-> |
v=0+---------+---------+---------+---------+
0/4 <=u<= 1/4 <=u<= 2/4 <=u<= 3/4 <=u<= 4/4
If the box is capped, then each side and cap gets 1/6 of the texture map.
v=1+---------+---------+---------+---------+---------+---------+
| x=dx[1] | y=dy[1] | x=dx[0] | y=dy[0] | z=dx[1] | z=dz[0] |
| Front | Right | Back | Left | Top | Bottom |
| --y-> | <-x-- | <-y-- | --x-> | --x-> | --x-> |
v=0+---------+---------+---------+---------+---------+---------+
0/6 <=u<= 1/6 <=u<= 2/6 <=u<= 3/6 <=u<= 4/6 <=u<= 5/6 <=u<= 6/6
Description: Create a planar projection texture mapping. Parameters: plane - [in] dx - [in] portion of the plane's x axis that is mapped to [0,1] (can be a decreasing interval)
dy - [in] portion of the plane's x axis that is mapped to [0,1] (can be a decreasing interval)
dz - [in] portion of the plane's x axis that is mapped to [0,1] (can be a decreasing interval)
projection_method - [in] 1: Closest point mapping. A target point P is mapped to the point on the plane that is closest to P. The target normal is ignored. 2: Target line mapping. A target point-vector pair (P, N), are mapped to the point on the plane where the line through P, parallel to N, intersects the plane. If the line is parallel to the plane, the closest point mapping is used. Example: Create a mapping that maps the world axis aligned rectangle in the world yz plane with corners at (0,3,5) and (0,7,19) to the texture coordinate unit square.
ON_3dVector plane_xaxis(0.0,1.0,0.0);
ON_3dVector plane_yaxis(0.0,0,0,1.0);
ON_3dPoint plane_origin(0.0,2.0,4.0);
ON_Plane plane(plane_origin,plane_xaxis,plane_yaxis);
ON_Interval dx( 0.0, 7.0 - 3.0);
ON_Interval dy( 0.0, 19.0 - 5.0);
ON_Interval dz( 0.0, 1.0 );
ON_TextureMapping mapping;
mapping.CreatePlaneMapping(plane,dx,dy,dz);
Returns: True if input is valid.