CFx SDK Documentation
2023 SP0
|
#include <BcfSession.h>
Public Types | |
enum | eSortParameter { kSortParameter_Guid = 0 , kSortParameter_CreationDate , kSortParameter_ModifiedDate , kSortParameter_Index } |
typedef std::pair< OdArray< OdString >, OdString > | ComponentColoring |
typedef OdArray< ComponentColoring > | ComponentColoringArray |
Static Public Member Functions | |
static OdSmartPtr< OdBcfSession > | createObject (const OdString &author, const OdString &authoringToolId, const OdBcfDataAccessorPtr &pDataAccessor=OdBcfDataAccessorPtr()) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions | |
OdGUID | getTopicId (const OdBcfTopicFolderPtr &pTopicFolder, OdResult *result=NULL) const |
const OdBcfComponentPtr | createComponent (const OdString &ifcGuid) const |
OdBcfComponentArray | createComponents (const OdArray< OdString > &ifcGuids) const |
OdBcfColorPtr | createColor (const OdArray< OdString > &ifcGuids, const OdString &color) const |
Protected Attributes | |
OdString | m_author |
OdString | m_authoringToolId |
OdBcfDataAccessorPtr | m_pDataAccessor |
OdBcfArchiveMap | m_archives |
A class that provides functionality for working with topic folder.
Definition at line 107 of file BcfSession.h.
typedef std::pair<OdArray<OdString>, OdString> OdBcf::OdBcfSession::ComponentColoring |
A data type that represents an STD pair containing an array of strings containing GUIDs and a string containing color.
Definition at line 316 of file BcfSession.h.
A data type that represents an ODA array of <link OdBcf::ComponentColoring, ComponentColoring> objects.
Definition at line 321 of file BcfSession.h.
Enumerator | |
---|---|
kSortParameter_Guid | |
kSortParameter_CreationDate | |
kSortParameter_ModifiedDate | |
kSortParameter_Index |
Definition at line 186 of file BcfSession.h.
OdString OdBcf::OdBcfSession::addArchive | ( | const OdBcfArchivePtr & | pArchive, |
OdResult * | result = NULL |
||
) |
Adds existing archive object to session collection.
pArchive | [in] A pointer to archive object. |
result | [out] A pointer to variable containing result of operation. |
void OdBcf::OdBcfSession::addScreenshot | ( | const OdString & | projectId, |
const OdGUID & | topicId, | ||
const OdString & | fileName, | ||
const char * | data, | ||
unsigned int | size, | ||
OdResult * | result = NULL |
||
) |
Adds screenshot to specified topic.
projectId | [in] A string containing project Id. |
topicId | [in] An GUID of topic folder. |
fileName | [in] A string containing file name to use for saving. |
data | [in] A pointer to buffer containing file data. |
size | [in] Length of the buffer containing file data. |
result | [out] A pointer to variable containing result of operation. |
OdGUID OdBcf::OdBcfSession::addTopicFolder | ( | const OdString & | projectId, |
const OdBcfTopicFolderPtr & | pTopicFolder, | ||
OdResult * | result = NULL |
||
) |
Adds existing topic folder object to specified project.
projectId | [in] A string containing project Id. |
pMarkup | [in] A pointer to topic folder object. |
result | [out] A pointer to variable containing result of operation. |
OdBcfBitmapPtr OdBcf::OdBcfSession::createBitmap | ( | const OdBcfBitmapData * | pBitmapData, |
OdResult * | result = NULL |
||
) | const |
Creates a new bitmap instance.
pBitmapData | [in] A pointer to a variable containing initial values for instance initialization. |
result | [out] A pointer to variable containing result of operation. |
|
protected |
|
protected |
OdBcfComponentColoringPtr OdBcf::OdBcfSession::createComponentColoring | ( | const ComponentColoringArray & | componentColoring, |
OdResult * | result = NULL |
||
) | const |
Creates a new component coloring instance.
componentColoring | [in] An array of ComponentColoring objects for instance initialization. |
result | [out] A pointer to variable containing result of operation. |
|
protected |
OdBcfComponentSelectionPtr OdBcf::OdBcfSession::createComponentSelection | ( | const OdArray< OdString > & | ifcGuids, |
OdResult * | result = NULL |
||
) | const |
Creates a new component selection instance.
ifcGuids | [in] An array of strings containing GUIDs for instance initialization. |
result | [out] A pointer to variable containing result of operation. |
OdBcfComponentVisibilityPtr OdBcf::OdBcfSession::createComponentVisibility | ( | const OdArray< OdString > & | ifcGuids, |
bool | defaultVisibility = false , |
||
OdResult * | result = NULL |
||
) | const |
Creates a new component visibility instance.
ifcGuids | [in] An array of strings containing GUIDs for instance initialization. |
optional | [in] A flag that determines whether the components is visible by default (equal to true) or hidden (equal to false). |
result | [out] A pointer to variable containing result of operation. |
|
static |
Creates a new session object.
author | [in] A string containing user name to sign BCF data. |
authoringToolId | [in] A string containing application name to sign BCF data. |
pDataAccessor | [in] A pointer to data accessor to use as default. |
OdBcfProjectPtr OdBcf::OdBcfSession::createProject | ( | const OdBcfProjectData * | pProjectData, |
OdResult * | result = NULL |
||
) | const |
Creates a new project instance.
pProjectData | [in] A pointer to a variable containing initial values for instance initialization. |
result | [out] A pointer to variable containing result of operation. |
OdBcfProjectExtensionPtr OdBcf::OdBcfSession::createProjectExtension | ( | const OdBcfProjectExtensionData * | pProjectExtensionData, |
OdResult * | result = NULL |
||
) | const |
Creates a new project extension instance.
pProjectExtensionData | [in] A pointer to a variable containing initial values for instance initialization. |
result | [out] A pointer to variable containing result of operation. |
OdBcfTopicPtr OdBcf::OdBcfSession::createTopic | ( | const OdBcfTopicData * | pTopicData, |
OdResult * | result = NULL |
||
) | const |
Creates a new topic instance.
pTopicData | [in] A pointer to a variable containing initial values for instance initialization. |
result | [out] A pointer to variable containing result of operation. |
OdBcfVersionPtr OdBcf::OdBcfSession::createVersion | ( | OdResult * | result = NULL | ) | const |
Creates a new version instance.
result | [out] A pointer to variable containing result of operation. |
OdBcfViewSetupHintsPtr OdBcf::OdBcfSession::createViewSetupHints | ( | OdResult * | result = NULL | ) | const |
Creates a new view setup hints instance.
result | [out] A pointer to variable containing result of operation. |
OdBcfVisualizationInfoPtr OdBcf::OdBcfSession::createVisualizationInfo | ( | const OdBcfVisualizationInfoData * | pVisualizationInfoData, |
const OdString & | visInfoFileName, | ||
const OdString & | screenshotFileName, | ||
OdBcfMarkupPtr | pMarkup, | ||
OdResult * | result = NULL |
||
) | const |
Creates a new visualization info instance.
pVisualizationInfoData | [in] A pointer to a variable containing initial values for instance initialization. |
visInfoFileName | [in] A string containing visualization information file name. |
screenshotFileName | [in] A string containing screenshot file name. |
pMarkup | [out] A pointer to a existing markup data for visualization information initialization. |
result | [out] A pointer to variable containing result of operation. |
OdBcfArchivePtr OdBcf::OdBcfSession::getArchive | ( | const OdString & | projectId, |
OdResult * | result = NULL |
||
) |
Retrieves archive with specified Id.
projectId | [in] A string containing project Id. |
result | [out] A pointer to variable containing result of operation. |
OdString OdBcf::OdBcfSession::getScreenshot | ( | const OdString & | projectId, |
const OdGUID & | topicId, | ||
const OdString & | fileName = OdString() , |
||
OdResult * | result = NULL |
||
) |
Constrcuts path to screenshot of specified topic.
projectId | [in] A string containing project Id. |
topicId | [in] An GUID of topic folder. |
fileName | [in] A string containing file name of the screenshot.s |
result | [out] A pointer to variable containing result of operation. |
OdBcfTopicFolderPtr OdBcf::OdBcfSession::getTopicFolder | ( | const OdString & | projectId, |
const OdGUID & | topicId, | ||
OdResult * | result = NULL |
||
) |
Retrieves topic folder of specified project by GUID.
projectId | [in] A string containing project Id. |
topicId | [in] An GUID of topic folder. |
result | [out] A pointer to variable containing result of operation. |
|
protected |
OdBcfTopicFolderArray OdBcf::OdBcfSession::getTopics | ( | const OdString & | projectId, |
eSortParameter | sortParameter = kSortParameter_Guid , |
||
OdResult * | result = NULL |
||
) |
Retrieves topic folders of specified project.
projectId | [in] A string containing project Id. |
sortParameter | [in] A parameter to sort topic folders before forwarding. |
result | [out] A pointer to variable containing result of operation. |
OdString OdBcf::OdBcfSession::loadProject | ( | const OdString & | fileName, |
OdBcfDataAccessorPtr | pDataAccessor = OdBcfDataAccessorPtr() , |
||
OdResult * | result = NULL |
||
) |
Loads archive using data accessor.
fileName | [in] A string containing file name to load. |
pDataAccessor | [in] A pointer to data accessor to use for loading. |
result | [out] A pointer to variable containing result of operation. |
OdBcf::OdBcfSession::ODRX_DECLARE_MEMBERS | ( | OdBcfSession | ) |
OdBcfArchivePtr OdBcf::OdBcfSession::removeArchive | ( | const OdString & | projectId, |
OdResult * | result = NULL |
||
) |
Removes archive with specified Id.
projectId | [in] A string containing project Id. |
result | [out] A pointer to variable containing result of operation. |
void OdBcf::OdBcfSession::removeTopicFolder | ( | const OdString & | projectId, |
const OdGUID & | topicId, | ||
OdResult * | result = NULL |
||
) |
Retrieves topic folder of specified project by GUID.
projectId | [in] A string containing project Id. |
topicId | [in] An GUID of topic folder. |
result | [out] A pointer to variable containing result of operation. |
void OdBcf::OdBcfSession::saveProject | ( | const OdString & | projectId, |
const OdString & | fileName = OdString() , |
||
OdBcfDataAccessorPtr | pDataAccessor = OdBcfDataAccessorPtr() , |
||
OdResult * | result = NULL |
||
) |
Saves archive using data accessor.
projectId | [in] A string containing project Id. |
fileName | [in] A string containing file name to use for saving. |
pDataAccessor | [in] A pointer to data accessor to use for saving. |
result | [out] A pointer to variable containing result of operation. |
bool OdBcf::OdBcfSession::validateArchive | ( | const OdString & | projectId, |
OdResult * | result = NULL |
||
) | const |
Validates archive with specified Id.
projectId | [in] A string containing project Id. |
result | [out] A pointer to variable containing result of operation. |
|
protected |
Definition at line 360 of file BcfSession.h.
|
protected |
Definition at line 357 of file BcfSession.h.
|
protected |
Definition at line 358 of file BcfSession.h.
|
protected |
Definition at line 359 of file BcfSession.h.