Allows for placed art manipulation, metadata access, etc.
More...
#include <hdicorePlacedArt.h>
|
enum | PlacedType { PlacedTypeUnknown = 0
, PlacedTypeEPS = 10
, PlacedTypeOther = 20
} |
| Describes what type of data is placed.
|
|
enum | PlaceMethod {
PlaceMethodUnknown = 0
, PlaceMethodAsIs = 10
, PlaceMethodFill = 20
, PlaceMethodFit = 30
,
PlaceMethodConform = 40
, PlaceMethodReconform = 50
} |
| Describes how the data has been placed.
|
|
enum | PlaceMode {
PlaceModeVanilla = 0
, PlaceModeQueryReplace = 10
, PlaceModeForceReplace = 20
, PlaceModeUnlinkPlaced = 30
,
PlaceModeForceReplaceValidate = 50
, PlaceModeQueryUnlinkPlaced = 60
} |
|
|
static bool | Create (const PlaceMode mode_, const std::string &path_, const bool link_, core::Art *const oldArt_, core::Art &newArt__) |
| Creates a new piece of art of type ArtTypePlaced.
|
|
Allows for placed art manipulation, metadata access, etc.
◆ ~PlacedArt()
hdi::core::PlacedArt::~PlacedArt |
( |
| ) |
|
Destructs a PlacedArt object.
- Author
- GW
- Date
- 08/2014
◆ bounds()
Retrieves the boundary dimensions of placed art, regardless of the transformations applied to it.
- Author
- GW
- Date
- 08/2014
- Returns
- The bounding rect
◆ Create()
static bool hdi::core::PlacedArt::Create |
( |
const PlaceMode |
mode_, |
|
|
const std::string & |
path_, |
|
|
const bool |
link_, |
|
|
core::Art *const |
oldArt_, |
|
|
core::Art & |
newArt__ |
|
) |
| |
|
static |
Creates a new piece of art of type ArtTypePlaced.
- Author
- GW
- Date
- 01/2016
- Parameters
-
mode_ | Type of (re)placement operation to perform |
path_ | File path of the file to place; if empty, shows a dialog to query the user instead |
link_ | true to link the file, false to place/import the file |
oldArt_ | Art to be replaced, if mode_ is a replacement operation; pass NULL otherwise |
newArt__ | Return-by-reference for the newly created art |
- Returns
- true if the art was created, false otherwise
◆ filePath()
std::string hdi::core::PlacedArt::filePath |
( |
| ) |
const |
Gets the file path for the placed art.
- Author
- GW
- Date
- 08/2014
- Returns
- The file path as UTF-8, or "" for error
◆ matrix()
Retrieves the transformation matrix that positions the content of a placed art object's linked file in the document.
- Author
- GW
- Date
- 08/2014
- Returns
- The transformation matrix for the placed art
◆ options()
Retrieves the placement options for a placed object.
- Author
- GW
- Date
- 08/2014
- Parameters
-
method__ | Return-by-reference for the method used to position and size the linked object |
align__ | Return-by-reference for the alignment of the linked object |
clip__ | Return-by-reference for true if the linked object is clipped |
- Returns
- true if the options could be acquired, false otherwise
◆ placedType()
PlacedType hdi::core::PlacedArt::placedType |
( |
| ) |
const |
Gets the type of placed art.
- Author
- GW
- Date
- 08/2014
- Returns
- The place art type
◆ setBounds()
Sets the preliminary bounding box information for a placed object.
- Author
- GW
- Date
- 08/2014
- Parameters
-
◆ setFilePath()
void hdi::core::PlacedArt::setFilePath |
( |
const std::string & |
path_ | ) |
|
Sets the file path for the placed art.
- Author
- GW
- Date
- 08/2014
- Parameters
-
path_ | New file path, as UTF-8 |
◆ setMatrix()
Sets the transformation matrix of the target placed art object.
- Author
- GW
- Date
- 08/2014
- Parameters
-
matrix_ | New transformation matrix |
◆ setOptions()
Sets the placement options for a placed object.
- Author
- GW
- Date
- 08/2014
- Parameters
-
method_ | New method used to position and size the linked object |
align_ | New alignment of the linked object |
clip_ | true if the linked object should be clipped |