# Visualization
TKV3d
Graphic3d

# Graphic3d_Texture2Dplane Class Reference

This class allows the management of a 2D texture defined from a plane equation
Use the SetXXX() methods for positioning the texture as you want.
.

`#include <Graphic3d_Texture2Dplane.hxx>`

Inheritance diagram for Graphic3d_Texture2Dplane:

[legend]

## Public Member Functions

Standard_EXPORT | Graphic3d_Texture2Dplane (const Handle(Graphic3d_StructureManager)&SM, const Standard_CString FileName)
| Creates a texture from a file .
Standard_EXPORT | Graphic3d_Texture2Dplane (const Handle(Graphic3d_StructureManager)&SM, const Graphic3d_NameOfTexture2D NOT)
| Creates a texture from a predefined texture name set. .
Standard_EXPORT void | SetPlaneS (const Standard_ShortReal A, const Standard_ShortReal B, const Standard_ShortReal C, const Standard_ShortReal D)
| Defines the texture projection plane for texture coordinate S default is <1.0, 0.0, 0.0, 0.0> .
Standard_EXPORT void | SetPlaneT (const Standard_ShortReal A, const Standard_ShortReal B, const Standard_ShortReal C, const Standard_ShortReal D)
| Defines the texture projection plane for texture coordinate T default is <0.0, 1.0, 0.0, 0.0> .
Standard_EXPORT void | SetPlane (const Graphic3d_NameOfTexturePlane APlane)
| Defines the texture projection plane for both S and T texture coordinate default is NOTP_XY meaning: <1.0, 0.0, 0.0, 0.0> for S and <0.0, 1.0, 0.0, 0.0> for T .
Standard_EXPORT void | SetScaleS (const Standard_ShortReal val)
| Defines the texture scale for the S texture coordinate much easier than recomputing the S plane equation but the result is the same default to 1.0 .
Standard_EXPORT void | SetScaleT (const Standard_ShortReal val)
| Defines the texture scale for the T texture coordinate much easier than recompution the T plane equation but the result is the same default to 1.0 .
Standard_EXPORT void | SetTranslateS (const Standard_ShortReal val)
| Defines the texture translation for the S texture coordinate you can obtain the same effect by modifying the S plane equation but its not easier. default to 0.0 .
Standard_EXPORT void | SetTranslateT (const Standard_ShortReal val)
| Defines the texture translation for the T texture coordinate you can obtain the same effect by modifying the T plane equation but its not easier. default to 0.0 .
Standard_EXPORT void | SetRotation (const Standard_ShortReal val)
| Sets the rotation angle of the whole texture. the same result might be achieved by recomputing the S and T plane equation but it's not the easiest way... the angle is expressed in degres default is 0.0 .
Standard_EXPORT Graphic3d_NameOfTexturePlane | Plane () const
| Returns the current texture plane name or NOTP_UNKNOWN when the plane is user defined. .
Standard_EXPORT void | PlaneS (Standard_ShortReal &A, Standard_ShortReal &B, Standard_ShortReal &C, Standard_ShortReal &D) const
| Returns the current texture plane S equation .
Standard_EXPORT void | PlaneT (Standard_ShortReal &A, Standard_ShortReal &B, Standard_ShortReal &C, Standard_ShortReal &D) const
| Returns the current texture plane T equation .
Standard_EXPORT void | TranslateS (Standard_ShortReal &val) const
| Returns the current texture S translation value .
Standard_EXPORT void | TranslateT (Standard_ShortReal &val) const
| Returns the current texture T translation value .
Standard_EXPORT void | ScaleS (Standard_ShortReal &val) const
| Returns the current texture S scale value .
Standard_EXPORT void | ScaleT (Standard_ShortReal &val) const
| Returns the current texture T scale value .
Standard_EXPORT void | Rotation (Standard_ShortReal &val) const
| Returns the current texture rotation angle .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Attributes

Graphic3d_NameOfTexturePlane | myPlaneName

## Constructor & Destructor Documentation

Standard_EXPORT Graphic3d_Texture2Dplane::Graphic3d_Texture2Dplane | ( | const Handle(Graphic3d_StructureManager)& | SM,
|  | const Standard_CString | FileName
| ) |

Standard_EXPORT Graphic3d_Texture2Dplane::Graphic3d_Texture2Dplane | ( | const Handle(Graphic3d_StructureManager)& | SM,
|  | const Graphic3d_NameOfTexture2D | NOT
| ) |

## Member Function Documentation

Standard_EXPORT const Graphic3d_Texture2Dplane::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from Graphic3d_Texture2D.

Standard_EXPORT Graphic3d_NameOfTexturePlane Graphic3d_Texture2Dplane::Plane | ( |  | ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::PlaneS | ( | Standard_ShortReal & | A,
|  | Standard_ShortReal & | B,
|  | Standard_ShortReal & | C,
|  | Standard_ShortReal & | D
| ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::PlaneT | ( | Standard_ShortReal & | A,
|  | Standard_ShortReal & | B,
|  | Standard_ShortReal & | C,
|  | Standard_ShortReal & | D
| ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::Rotation | ( | Standard_ShortReal & | val | ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::ScaleS | ( | Standard_ShortReal & | val | ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::ScaleT | ( | Standard_ShortReal & | val | ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::SetPlane | ( | const Graphic3d_NameOfTexturePlane | APlane | ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetPlaneS | ( | const Standard_ShortReal | A,
|  | const Standard_ShortReal | B,
|  | const Standard_ShortReal | C,
|  | const Standard_ShortReal | D
| ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetPlaneT | ( | const Standard_ShortReal | A,
|  | const Standard_ShortReal | B,
|  | const Standard_ShortReal | C,
|  | const Standard_ShortReal | D
| ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetRotation | ( | const Standard_ShortReal | val | ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetScaleS | ( | const Standard_ShortReal | val | ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetScaleT | ( | const Standard_ShortReal | val | ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetTranslateS | ( | const Standard_ShortReal | val | ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::SetTranslateT | ( | const Standard_ShortReal | val | ) |

Standard_EXPORT void Graphic3d_Texture2Dplane::TranslateS | ( | Standard_ShortReal & | val | ) | const

Standard_EXPORT void Graphic3d_Texture2Dplane::TranslateT | ( | Standard_ShortReal & | val | ) | const

## Field Documentation

Graphic3d_NameOfTexturePlane Graphic3d_Texture2Dplane::myPlaneName `[private]`

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

- Graphic3d_Texture2Dplane.hxx