04-11-2017, 03:16 PM
Make sure you have the latest version of CORE. Perhaps the issue is that you're using an older version that does not have the proper functions at all.
The latest version has the following on line 821 of hdicoreArtColor.h:
That constructor obviously takes a PatternStyle object. This is from line 719 of hdicoreArtColor.h:
To acquire a Pattern object, use the following from line 806 of hdicoreCurrentDocument.h:
Or, you can create an entirely new Pattern object using the following from line 63 of hdicorePattern.h:
Hopefully that helps.
The latest version has the following on line 821 of hdicoreArtColor.h:
Code:
/**
\brief Constructs an ArtColor object from a PatternStyle
\author GW
\date 11/2016
\param ps_ The PatternStyle object, from which the ArtColor will be derived
*/
ArtColor(const PatternStyle& ps_);
That constructor obviously takes a PatternStyle object. This is from line 719 of hdicoreArtColor.h:
Code:
/**
\brief Constructs a new PatternStyle object with the given values
\author GW
\date 12/2013
\param pattern_ (See pattern member description)
\param shiftDist_ (See shiftDistance member description)
\param shiftAngle_ (See shiftAngle member description)
\param scaleX_ (See scaleX member description)
\param scaleY_ (See scaleY member description)
\param rotation_ (See rotation member description)
\param reflect_ (See reflect member description)
\param reflectAngle_ (See reflectAngle member description)
\param shearAngle_ (See shearAngle member description)
\param shearAxis_ (See shearAxis member description)
\param transform_ (See transform member description)
*/
PatternStyle(
const core::Pattern& pattern_,
const double shiftDist_,
const core::Angle& shiftAngle_,
const double scaleX_,
const double scaleY_,
const core::Angle& rotation_,
const bool reflect_,
const core::Angle& reflectAngle_,
const core::Angle& shearAngle_,
const core::Angle& shearAxis_,
const core::TransformMatrix& transform_
);
To acquire a Pattern object, use the following from line 806 of hdicoreCurrentDocument.h:
Code:
/**
\brief Gets a given pattern, by its index, in the current doc
\author GW
\date 11/2013
\param index_ Index number of the pattern in question
\returns The Pattern object with the specified index
*/
std::auto_ptr<Pattern> patternAtIndex(const uint32_t index_) const;
Or, you can create an entirely new Pattern object using the following from line 63 of hdicorePattern.h:
Code:
/**
\brief Creates a new Pattern object (and Illustrator pattern); set the source art for it with
the setSourceArt() method
\author GW
\date 11/2013
\returns A new Pattern object
*/
static Pattern create();
Hopefully that helps.