18 # define HPS_HCA_API __declspec (dllexport) 20 # define HPS_HCA_API __declspec (dllimport) 70 static const HPS::Type staticType = HPS::Type::HCAImportNotifier;
111 static const HPS::Type staticType = HPS::Type::HCAImportOptionsKit;
184 ImportOptionsKit & SetEjectedBoundingPreviews(
bool ejected_bounding_previews);
195 bool ShowTarget(
HPS::Model & out_model)
const;
200 bool ShowView(
HPS::View & out_view)
const;
205 bool ShowJavascriptPath(
HPS::UTF8 & out_javascript_path)
const;
210 bool ShowNetworkPath(
HPS::UTF8 & out_network_path)
const;
215 bool ShowNetworkModelName(
HPS::UTF8 & out_network_model_name)
const;
220 bool ShowModelBoundingPreviews(
bool & out_model_bounding_previews)
const;
225 bool ShowEjectedBoundingPreviews(
bool & out_ejected_bounding_previews)
const;
230 bool ShowLimitMiB(uint32_t & out_limit_MiB)
const;
296 ErrorCyclicFileDependencies,
297 ErrorSerializationFailure,
298 ErrorDeserializationFailure,
299 ErrorIllegalFileName,
300 ErrorFileSystemFailure,
301 ErrorHCARootAlreadyExists,
316 channel = GetClassID();
322 channel = GetClassID();
330 if (in_event.
GetChannel() == Object::ClassID<RequestIdEvent>())
333 request_id = that.request_id;
356 InstanceInc() : inclusion_key(0xFFFFFFFF), instance_key(0xFFFFFFFF) {}
357 InstanceInc(uint32_t inclusion_key, uint32_t instance_key)
358 : inclusion_key(inclusion_key), instance_key(instance_key) {}
359 uint32_t inclusion_key;
360 uint32_t instance_key;
364 return (inclusion_key == that.inclusion_key) && (instance_key == that.instance_key);
369 return !operator==(that);
373 typedef ::std::vector<InstanceInc, HPS::Allocator<InstanceInc>> InstanceIncArray;
378 typedef ::std::shared_ptr<ModelTreeItem> ModelTreeItemPtr;
379 typedef ::std::shared_ptr<ModelTree> ModelTreePtr;
402 bool Equals(
Model const & other)
const;
403 bool operator== (
Model const & other)
const;
404 bool operator!= (
Model const & other)
const;
416 bool WaitForLoadToComplete(
unsigned int in_timeout_ms = 0);
418 bool ShowRootNode(int64_t & out_node_id);
420 bool ShowNodeName(int64_t in_node_id,
HPS::UTF8 & out_name);
424 bool ShowNodeParent(int64_t in_node_id, int64_t & out_parent_id);
426 bool ShowInstanceIncs(int64_t in_node_id, InstanceIncArray & out_instance_incs);
428 bool ShowNode(
InstanceInc const & in_instance_inc, int64_t & out_node_id);
434 bool RequestNodeProperties(int64_t in_node_id, uint32_t & out_request_id);
436 bool RetrieveNodeProperties(uint32_t in_request_id,
437 int64_t & out_node_id,
bool & out_valid,
442 void Show(
HPS::Canvas const & in_canvas, int64_t in_node_id);
444 void Hide(
HPS::Canvas const & in_canvas, int64_t in_node_id);
446 void Unhighlight(
HPS::Canvas const & in_canvas, int64_t in_node_id);
452 void Isolate(
HPS::Canvas const & in_canvas, int64_t in_node_id);
454 void Zoom(
HPS::Canvas const & in_canvas, int64_t in_node_id);
458 bool IsHidden(int64_t in_node_id);
460 bool IsHighlighted(int64_t in_node_id);
462 void OnHighlightUnhighlight();
464 void UnhighlightAll(
HPS::Canvas const & in_canvas);
468 void highlight_internal(
475 Model(
void * in_opaque);
511 static const HPS::Type staticType = HPS::Type::HCAModelTree;
527 virtual void Assign(
ModelTree const & in_that);
532 bool Equals(
ModelTree const & in_that)
const;
537 bool operator!=(
ModelTree const & in_that)
const;
542 bool operator==(
ModelTree const & in_that)
const;
551 void SetRoot(ModelTreeItemPtr
const & in_root);
555 ModelTreeItemPtr GetRoot()
const;
563 virtual void Flush();
565 virtual void OnHighlightUnhighlight();
590 ModelTreeItem(ModelTreePtr
const & in_tree, int64_t in_node_id);
594 static const HPS::Type staticType = HPS::Type::HCAModelTreeItem;
630 ModelTreePtr GetTree()
const;
634 UTF8 GetTitle()
const;
642 bool HasChildren()
const;
646 virtual ModelTreeItemPtr AddChild(int64_t in_node_id) = 0;
651 virtual void Expand();
655 virtual void Collapse();
659 uint64_t GetNodeId()
const;
662 bool IsHidden()
const;
684 bool IsExpanded()
const;
687 bool IsHighlighted()
const;
690 virtual void OnHighlightUnhighlight();
699 bool RequestProperties(uint32_t & out_request_id);
Definition: sprk_hca.h:383
An InvalidSpecificationException is thrown when a method is called with non-sensical or contradictory...
Definition: hps.h:5889
IOResult
Definition: sprk_hca.h:292
intptr_t GetChannel() const
Definition: hps.h:6402
Definition: sprk_hca.h:89
Definition: sprk_hca.h:571
Definition: sprk_hca.h:309
HPS::Type ObjectType() const
Definition: sprk_hca.h:112
RequestIdEvent()
Definition: sprk_hca.h:314
Definition: sprk_hca.h:274
Definition: sprk_hca.h:481
HPS::Type ObjectType() const
Definition: sprk_hca.h:71
Event * Clone() const override
Definition: sprk_hca.h:343
std::vector< UTF8, Allocator< UTF8 > > UTF8Array
Array of type HPS::UTF8.
Definition: hps.h:6719
HPS::Type ObjectType() const
Definition: sprk_hca.h:595
std::vector< int64_t, HPS::Allocator< int64_t > > Int64Array
Array of type int64_t.
Definition: hps.h:6767
std::vector< Key, Allocator< Key > > KeyArray
Array of type HPS::Key.
Definition: hps.h:6723
Definition: sprk_hca.h:355
virtual void OnShowHide()
Definition: sprk_hca.h:665
virtual HPS::Type ObjectType() const
Definition: sprk_hca.h:512
RequestIdEvent(Event const &in_event)
Definition: sprk_hca.h:328
Definition: sprk_hca.h:42
ItemType
Definition: sprk_hca.h:486
Definition: sprk_hca.h:37