The World class is a special object that must be constructed prior to making any database calls and must exist for the life of the application. More...
#include <hps.h>
Public Member Functions | |
World (char const *in_license, char const *in_code_generation_directory=nullptr) | |
This constructor creates a new World object with the given license. More... | |
~World () | |
The destructor will shutdown the database and invalidate all objects within it. More... | |
HPS::Type | ObjectType () const |
World & | SetMaterialLibraryDirectory (char const *in_directory) |
Sets the directory which contains the material library for Visualize. More... | |
World & | SetFontDirectory (char const *in_directory) |
Sets the directory which contains fonts for use by Visualize. More... | |
World & | SetFontDirectories (size_t in_count, UTF8 const in_directories[]) |
Sets the directories which contain fonts for use by Visualize. More... | |
World & | SetFontDirectories (UTF8Array const &in_directories) |
Sets the directories which contain fonts for use by Visualize. More... | |
World & | SetDriverConfigFile (char const *in_filename) |
Sets the driver configuration file (i.e., a plain text file which can force device specific behavior) for Visualize. More... | |
World & | SetExchangeLibraryDirectory (char const *in_directory) |
Sets the directory which contains the Exchange and Publish libraries. More... | |
World & | SetPublishResourceDirectory (char const *in_directory) |
Sets the resource directory for Publish. More... | |
World & | SetParasolidSchemaDirectory (char const *in_directory) |
Sets the schema directory for Parasolid. More... | |
World & | SetRealDWGDirectory (char const *in_directory) |
Sets the RealDWG directory. More... | |
World & | SetRealDWGDirectory (char const *in_directory, UTF8Array const &in_object_enabler_directories) |
Sets the RealDWG directory and its related Object Enabler directories. More... | |
World & | SetParasolidBodyshopDirectory (char const *in_directory) |
Sets the Parasolid Bodyshop directory. More... | |
World & | UnsetMaterialLibraryDirectory () |
Removes the material library directory for Visualize. More... | |
World & | UnsetFontDirectories () |
Removes the font directories for Visualize. More... | |
World & | UnsetDriverConfigFile () |
Removes the driver configuration file for Visualize. More... | |
World & | UnsetExchangeLibraryDirectory () |
Removes the Exchange and Publish library directory. More... | |
World & | UnsetPublishResourceDirectory () |
Removes the Publish resource directory. More... | |
World & | UnsetParasolidSchemaDirectory () |
Removes the Parasolid schema directory. More... | |
World & | UnsetRealDWGDirectory () |
Removes the RealDWG directory and any Object Enabler directories. More... | |
World & | UnsetParasolidBodyshopDirectory () |
Removes the Parasolid Bodyshop directory. More... | |
bool | ShowMaterialLibraryDirectory (UTF8 &out_directory) const |
Shows the material library directory for Visualize. More... | |
bool | ShowFontDirectories (UTF8Array &out_directories) const |
Shows the font directories for Visualize. More... | |
bool | ShowDriverConfigFile (UTF8 &out_filename) const |
Shows the driver configuration file for Visualize. More... | |
bool | ShowExchangeLibraryDirectory (UTF8 &out_directory) const |
Shows the Exchange and Publish library directory. More... | |
bool | ShowPublishResourceDirectory (UTF8 &out_directory) const |
Shows the Publish resource directory. More... | |
bool | ShowParasolidSchemaDirectory (UTF8 &out_directory) const |
Shows the Parasolid schema directory. More... | |
bool | ShowRealDWGDirectory (UTF8 &out_directory, UTF8Array &out_object_enabler_directories) const |
Shows the RealDWG directory and any related Object Enabler directories. More... | |
bool | ShowParasolidBodyshopDirectory (UTF8 &out_directory) const |
Shows the Parasolid Bodyshop directory. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
static void | AddCodeGenerationComment (UTF8 const &in_comment) |
Adds a comment to the generated code. More... | |
static void | StopCodeGeneration () |
Stops Code Generation. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::World |
Private Member Functions | |
World () | |
Private default constructor to prevent instantiation without license. More... | |
virtual void | Reset () |
Not available here. More... | |
The World class is a special object that must be constructed prior to making any database calls and must exist for the life of the application.
HPS::World::World | ( | char const * | in_license, |
char const * | in_code_generation_directory = nullptr |
||
) |
This constructor creates a new World object with the given license.
The license string determines what functionality is available in Visualize. There should only be one World object that is constructed during the life of the application. Optionally it is possible to start Code Generation, which logs every call to the HPS API for debugging purposes. While Code Generation is active, HPS performance will be slower than usual.
in_license | UTF8-encoded license string for Visualize. |
in_code_generation_directory | UTF8-encoded directory where the output of Code Generation will be stored. The directory must already exist. |
HPS::World::~World | ( | ) |
The destructor will shutdown the database and invalidate all objects within it.
|
private |
Private default constructor to prevent instantiation without license.
|
static |
Adds a comment to the generated code.
Useful to guide a developer towards the source of a problem. Code Generation must be started before this function can be called.
in_comment | A comment to be embedded in the code generation. |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
inlinevirtualinherited |
Indicates whether this object has any values set on it.
Reimplemented in HPS::STL::ImportResultsKit, HPS::STL::ImportOptionsKit, HPS::OBJ::ImportResultsKit, HPS::OBJ::ImportOptionsKit, HPS::Hardcopy::File::ExportOptionsKit, HPS::Stream::ExportOptionsKit, HPS::Stream::ImportResultsKit, HPS::Stream::ImportOptionsKit, HPS::PointCloud::ImportOptionsKit, HPS::PointCloud::ImportResultsKit, HPS::UpdateOptionsKit, HPS::HighlightSearchOptionsKit, HPS::HighlightOptionsKit, HPS::SelectionOptionsKit, HPS::SearchOptionsKit, HPS::CutGeometryGatheringOptionsKit, HPS::ShapeKit, HPS::ShaderKit, HPS::Shader::ImportOptionsKit, HPS::ImageKit, HPS::Image::ImportOptionsKit, HPS::Image::ExportOptionsKit, HPS::TextureOptionsKit, HPS::LinePatternKit, HPS::LinePatternParallelKit, HPS::LinePatternOptionsKit, HPS::GlyphKit, HPS::ApplicationWindowOptionsKit, HPS::OffScreenWindowOptionsKit, HPS::StandAloneWindowOptionsKit, HPS::GridKit, HPS::PolygonKit, HPS::MeshKit, HPS::ShellKit, HPS::ShellRelationResultsKit, HPS::ShellRelationOptionsKit, HPS::ShellOptimizationOptionsKit, HPS::TextKit, HPS::EllipticalArcKit, HPS::EllipseKit, HPS::TrimKit, HPS::NURBSSurfaceKit, HPS::NURBSCurveKit, HPS::SpotlightKit, HPS::InfiniteLineKit, HPS::CuttingSectionKit, HPS::CircularWedgeKit, HPS::CircularArcKit, HPS::CircleKit, HPS::SphereKit, HPS::CylinderKit, HPS::DistantLightKit, HPS::MarkerKit, HPS::LineKit, HPS::AttributeLockKit, HPS::FontInfoState, HPS::WindowInfoKit, HPS::DebuggingKit, HPS::SubwindowKit, HPS::ContourLineKit, HPS::VisualEffectsKit, HPS::TransformMaskKit, HPS::PostProcessEffectsKit, HPS::DrawingAttributeKit, HPS::HiddenLineAttributeKit, HPS::PerformanceKit, HPS::NURBSSurfaceAttributeKit, HPS::MaterialKit, HPS::MaterialMappingKit, HPS::MatrixKit, HPS::CurveAttributeKit, HPS::EdgeAttributeKit, HPS::LineAttributeKit, HPS::TextAttributeKit, HPS::CuttingSectionAttributeKit, HPS::CylinderAttributeKit, HPS::LightingAttributeKit, HPS::SphereAttributeKit, HPS::MarkerAttributeKit, HPS::CullingKit, HPS::ColorInterpolationKit, HPS::TransparencyKit, HPS::SelectabilityKit, HPS::CameraKit, HPS::VisibilityKit, HPS::BoundingKit, HPS::SegmentOptimizationOptionsKit, HPS::Publish::ExportOptionsKit, HPS::Publish::TextFieldKit, HPS::Publish::SignatureFieldKit, HPS::Publish::DropDownListKit, HPS::Exchange::TessellationOptionsKit, HPS::Publish::ListBoxKit, HPS::Exchange::ExportSTEPOptionsKit, HPS::Exchange::ExportParasolidOptionsKit, HPS::Publish::RadioButtonKit, HPS::Exchange::ExportIGESOptionsKit, HPS::Exchange::ExportXMLOptionsKit, HPS::Publish::CheckBoxKit, HPS::Exchange::ExportU3DOptionsKit, HPS::Exchange::ExportSTLOptionsKit, HPS::Publish::ButtonKit, HPS::Exchange::ExportPRCOptionsKit, HPS::Publish::LinkKit, HPS::Exchange::ExportJTOptionsKit, HPS::Publish::SlideTableKit, HPS::Exchange::ExportACISOptionsKit, HPS::Publish::TableKit, HPS::Exchange::Export3MFOptionsKit, HPS::Publish::ImageKit, HPS::Publish::TextKit, HPS::Exchange::ModelFileImportOptionsKit, HPS::Publish::ViewKit, HPS::Exchange::TranslationOptionsKit, HPS::Publish::ArtworkKit, HPS::Publish::AnnotationKit, HPS::ComponentPath, HPS::Exchange::ImportOptionsKit, HPS::Parasolid::ExportOptionsKit, HPS::Exchange::NURBSConversionOptionsKit, HPS::Parasolid::LineTessellationKit, HPS::Exchange::Configuration, HPS::Publish::PageKit, HPS::Parasolid::FacetTessellationKit, HPS::Publish::DocumentKit, HPS::Parasolid::ImportOptionsKit, HPS::DWG::ImportOptionsKit, HPS::OOC::ImportOptionsKit, HPS::Sketchup::ImportOptionsKit, and HPS::Sketchup::ImportResultsKit.
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
Reimplemented from HPS::Object.
|
inlineprivatevirtual |
Not available here.
Reimplemented from HPS::Object.
World& HPS::World::SetDriverConfigFile | ( | char const * | in_filename | ) |
Sets the driver configuration file (i.e., a plain text file which can force device specific behavior) for Visualize.
To ensure the settings within the configuration file take effect, this file must be specified prior to creating a driver which will be affected by the settings.
in_filename | UTF8-encoded file name. |
World& HPS::World::SetExchangeLibraryDirectory | ( | char const * | in_directory | ) |
Sets the directory which contains the Exchange and Publish libraries.
If this is set, the Exchange and Publish Visualize modules will try to load the libraries from this directory. If this is not set, those modules will try to load the libraries from the directories in the application's PATH. Note that this function will append the given directory to the PATH.
in_directory | UTF8-encoded directory name. |
Sets the directories which contain fonts for use by Visualize.
This must be specified for Visualize to make use of any fonts beyond those Visualize defines itself.
in_count | Size of the following array. |
in_directories | Array of UTF8-encoded directory names. |
Sets the directories which contain fonts for use by Visualize.
This must be specified for Visualize to make use of any fonts beyond those Visualize defines itself.
in_directories | Array of UTF8-encoded directory names. |
World& HPS::World::SetFontDirectory | ( | char const * | in_directory | ) |
Sets the directory which contains fonts for use by Visualize.
This must be specified for Visualize to make use of any fonts beyond those Visualize defines itself.
in_directory | UTF8-encoded directory name. |
World& HPS::World::SetMaterialLibraryDirectory | ( | char const * | in_directory | ) |
Sets the directory which contains the material library for Visualize.
This must be specified to ensure any files which use the material library display correctly.
in_directory | UTF8-encoded directory name. |
World& HPS::World::SetParasolidBodyshopDirectory | ( | char const * | in_directory | ) |
World& HPS::World::SetParasolidSchemaDirectory | ( | char const * | in_directory | ) |
Sets the schema directory for Parasolid.
This directory must be specified to make use of the Parasolid module.
in_directory | UTF8-encoded directory name. |
World& HPS::World::SetPublishResourceDirectory | ( | char const * | in_directory | ) |
Sets the resource directory for Publish.
This is not the directory which contains the libraries (see World::SetExchangeLibraryDirectory), but rather the directory which contains fonts and associated mappings and files used during PDF generation. This directory must be specified to make use of the Publish module.
in_directory | UTF8-encoded directory name. |
World& HPS::World::SetRealDWGDirectory | ( | char const * | in_directory | ) |
Sets the RealDWG directory.
This directory must be specified to make use of the DWG module.
in_directory | UTF8-encoded directory name. |
World& HPS::World::SetRealDWGDirectory | ( | char const * | in_directory, |
UTF8Array const & | in_object_enabler_directories | ||
) |
Sets the RealDWG directory and its related Object Enabler directories.
This RealDWG directory must be specified to make use of the DWG module.
in_directory | UTF8-encoded directory name. |
in_object_enabler_directories | A list of UTF8-encoded directory names. |
bool HPS::World::ShowDriverConfigFile | ( | UTF8 & | out_filename | ) | const |
Shows the driver configuration file for Visualize.
out_filename | UTF8-encoded file names. |
bool HPS::World::ShowExchangeLibraryDirectory | ( | UTF8 & | out_directory | ) | const |
bool HPS::World::ShowFontDirectories | ( | UTF8Array & | out_directories | ) | const |
Shows the font directories for Visualize.
out_directories | Array of UTF8-encoded directory names. |
bool HPS::World::ShowMaterialLibraryDirectory | ( | UTF8 & | out_directory | ) | const |
Shows the material library directory for Visualize.
out_directory | UTF8-encoded directory name. |
bool HPS::World::ShowParasolidBodyshopDirectory | ( | UTF8 & | out_directory | ) | const |
bool HPS::World::ShowParasolidSchemaDirectory | ( | UTF8 & | out_directory | ) | const |
bool HPS::World::ShowPublishResourceDirectory | ( | UTF8 & | out_directory | ) | const |
bool HPS::World::ShowRealDWGDirectory | ( | UTF8 & | out_directory, |
UTF8Array & | out_object_enabler_directories | ||
) | const |
Shows the RealDWG directory and any related Object Enabler directories.
out_directory | UTF8-encoded directory name. |
out_object_enabler_directories | A list of UTF8-encoded directory names. |
|
static |
Stops Code Generation.
|
virtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented in HPS::UpdateOptionsControl, HPS::HighlightControl, HPS::SelectionOptionsControl, HPS::OffScreenWindowOptionsControl, HPS::ApplicationWindowOptionsControl, HPS::StandAloneWindowOptionsControl, HPS::AttributeLockControl, HPS::WindowInfoControl, HPS::DebuggingControl, HPS::SubwindowControl, HPS::ContourLineControl, HPS::VisualEffectsControl, HPS::TransformMaskControl, HPS::PostProcessEffectsControl, HPS::DrawingAttributeControl, HPS::HiddenLineAttributeControl, HPS::PerformanceControl, HPS::NURBSSurfaceAttributeControl, HPS::ConditionControl, HPS::StyleControl, HPS::PortfolioControl, HPS::MaterialMappingControl, HPS::TextureMatrixControl, HPS::ModellingMatrixControl, HPS::CurveAttributeControl, HPS::EdgeAttributeControl, HPS::LineAttributeControl, HPS::TextAttributeControl, HPS::CuttingSectionAttributeControl, HPS::CylinderAttributeControl, HPS::LightingAttributeControl, HPS::SphereAttributeControl, HPS::MarkerAttributeControl, HPS::CullingControl, HPS::ColorInterpolationControl, HPS::TransparencyControl, HPS::SelectabilityControl, HPS::CameraControl, HPS::VisibilityControl, HPS::BoundingControl, HPS::Kit, and HPS::Control.
World& HPS::World::UnsetDriverConfigFile | ( | ) |
Removes the driver configuration file for Visualize.
World& HPS::World::UnsetExchangeLibraryDirectory | ( | ) |
World& HPS::World::UnsetFontDirectories | ( | ) |
Removes the font directories for Visualize.
World& HPS::World::UnsetMaterialLibraryDirectory | ( | ) |
Removes the material library directory for Visualize.
World& HPS::World::UnsetParasolidBodyshopDirectory | ( | ) |
World& HPS::World::UnsetParasolidSchemaDirectory | ( | ) |
World& HPS::World::UnsetPublishResourceDirectory | ( | ) |
World& HPS::World::UnsetRealDWGDirectory | ( | ) |
Removes the RealDWG directory and any Object Enabler directories.
|
static |