#include <GiEnvironmentTraitsData.h>
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 325 of file GiEnvironmentTraitsData.h.
◆ OdGiImageBackgroundTraitsData()
OdGiImageBackgroundTraitsData::OdGiImageBackgroundTraitsData |
( |
| ) |
|
|
inline |
◆ fitToScreen()
bool OdGiImageBackgroundTraitsData::fitToScreen |
( |
| ) |
const |
|
inline |
Checks whether image-based background should be fit to screen.
- Returns
- true if background is fit to screen, false otherwise.
Definition at line 358 of file GiEnvironmentTraitsData.h.
◆ imageFilename()
const OdString & OdGiImageBackgroundTraitsData::imageFilename |
( |
| ) |
const |
|
inline |
◆ maintainAspectRatio()
bool OdGiImageBackgroundTraitsData::maintainAspectRatio |
( |
| ) |
const |
|
inline |
Checks whether image-based background maintains aspect ratio.
- Returns
- true if aspect ratio is maintained, false otherwise.
Definition at line 366 of file GiEnvironmentTraitsData.h.
◆ operator!=()
Checks whether the passed traits for image backgrounds are not equal to these traits. Traits are considered not equal if one of the following conditions fails: Full file paths are equal; Fit to screen flags are equal; Maintain aspect ratio flags are equal; Use tiling flags are equal; Offset distances are equal by both axes; Scale factors are equal by both axes;
- Parameters
-
data2 | [in] Background traits to compare. |
- Returns
- true if background traits are not equal, false otherwise.
Definition at line 520 of file GiEnvironmentTraitsData.h.
◆ operator==()
Checks whether the passed traits for image backgrounds are equal to these traits. Traits are considered equal if: Full file paths are equal; Fit to screen flags are equal; Maintain aspect ratio flags are equal; Use tiling flags are equal; Offset distances are equal by both axes; Scale factors are equal by both axes;
- Parameters
-
data2 | [in] Background traits to compare. |
- Returns
- true if background traits are equal, false otherwise.
Definition at line 494 of file GiEnvironmentTraitsData.h.
◆ setFitToScreen()
void OdGiImageBackgroundTraitsData::setFitToScreen |
( |
bool |
flag | ) |
|
|
inline |
Specifies whether image-based background should be fit to screen.
- Parameters
-
bFitToScreen | [in] Flag that specifies whether to fit this background to screen. |
Definition at line 381 of file GiEnvironmentTraitsData.h.
◆ setImageFilename()
void OdGiImageBackgroundTraitsData::setImageFilename |
( |
const OdString & |
filename | ) |
|
|
inline |
◆ setMaintainAspectRatio()
void OdGiImageBackgroundTraitsData::setMaintainAspectRatio |
( |
bool |
flag | ) |
|
|
inline |
Specifies whether image-based background should maintain aspect ratio. Usually called together with setFitToScreen() methods or other methods which can modify background dimensions.
- Parameters
-
bMaintainAspectRatio | [in] Flag that specifies whether to maintain aspect ratio of a background image. |
Definition at line 389 of file GiEnvironmentTraitsData.h.
◆ setOffset()
void OdGiImageBackgroundTraitsData::setOffset |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Specifies offset of a background by both axes.
- Parameters
-
x | [in] Offset distance by x-axis. |
y | [in] Offset distance by y-axis. |
Definition at line 526 of file GiEnvironmentTraitsData.h.
◆ setScale()
void OdGiImageBackgroundTraitsData::setScale |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Specifies scale of a background by both axes.
- Parameters
-
x | [in] Scale factor by x-axis. |
y | [in] Scale factor by y-axis. |
Definition at line 531 of file GiEnvironmentTraitsData.h.
◆ setUseTiling()
void OdGiImageBackgroundTraitsData::setUseTiling |
( |
bool |
flag | ) |
|
|
inline |
Specifies whether to tile image-based background.
- Parameters
-
bUseTiling | [in] Flag that specifies whether to tile image-based background. |
Definition at line 399 of file GiEnvironmentTraitsData.h.
◆ setXOffset()
void OdGiImageBackgroundTraitsData::setXOffset |
( |
double |
xOffset | ) |
|
|
inline |
Specifies offset of a background on the x-axis.
- Parameters
-
xOffset | [in] Offset distance. Negative values mean that background is offset in the opposite direction of x-axis. |
Definition at line 430 of file GiEnvironmentTraitsData.h.
◆ setXScale()
void OdGiImageBackgroundTraitsData::setXScale |
( |
double |
xScale | ) |
|
|
inline |
Specifies scale of a background on the x-axis.
- Parameters
-
xScale | [in] Scale factor for the x-axis. |
Definition at line 470 of file GiEnvironmentTraitsData.h.
◆ setYOffset()
void OdGiImageBackgroundTraitsData::setYOffset |
( |
double |
yOffset | ) |
|
|
inline |
Specifies offset of a background on the y-axis.
- Parameters
-
yOffset | [in] Offset distance. Negative values mean that background is offset in the opposite direction of y-axis. |
Definition at line 437 of file GiEnvironmentTraitsData.h.
◆ setYScale()
void OdGiImageBackgroundTraitsData::setYScale |
( |
double |
yScale | ) |
|
|
inline |
Specifies scale of a background on the y-axis.
- Parameters
-
yScale | [in] Scale factor for the y-axis. |
Definition at line 477 of file GiEnvironmentTraitsData.h.
◆ useTiling()
bool OdGiImageBackgroundTraitsData::useTiling |
( |
| ) |
const |
|
inline |
Checks whether image-based background is tiled.
- Returns
- true if background is tiled, false otherwise.
Definition at line 374 of file GiEnvironmentTraitsData.h.
◆ xOffset()
double OdGiImageBackgroundTraitsData::xOffset |
( |
| ) |
const |
|
inline |
Retrieves offset of a background on the x-axis.
- Returns
- offset value on the x-axis.
Definition at line 415 of file GiEnvironmentTraitsData.h.
◆ xScale()
double OdGiImageBackgroundTraitsData::xScale |
( |
| ) |
const |
|
inline |
Retrieves scale of a background on the x-axis.
- Returns
- Scale of the x-axis for this background. Values between 0 and 1 mean that background is shrunk on x-axis, values greater than 1 mean than background is stretched and negative values mean that background is flipped on x-axis.
Definition at line 454 of file GiEnvironmentTraitsData.h.
◆ yOffset()
double OdGiImageBackgroundTraitsData::yOffset |
( |
| ) |
const |
|
inline |
Retrieves offset of a background on the y-axis.
- Returns
- offset value on the y-axis.
Definition at line 423 of file GiEnvironmentTraitsData.h.
◆ yScale()
double OdGiImageBackgroundTraitsData::yScale |
( |
| ) |
const |
|
inline |
Retrieves scale of a background on the y-axis.
- Returns
- Scale of the y-axis for this background. Values between 0 and 1 mean that background is shrunk on y-axis, values greater than 1 mean than background is stretched and negative values mean that background is flipped on y-axis.
Definition at line 463 of file GiEnvironmentTraitsData.h.
The documentation for this class was generated from the following file: