neuray API Programmer's Manual

mi::neuraylib::IMdl_package_info Class Reference

Description

Interface for a graph node representing an MDL package.

Public Member Functions

virtual const IMdl_infoget_child( Size index) const =0
Returns a child of this package. More...
virtual Size get_child_count() const =0
Returns the number of modules and packages contained by this package.
virtual const IStringget_resolved_path( Size index) const =0
Returns an absolute path to package in the local file system. More...
virtual const char* get_search_path( Size index) const =0
Returns a search path in the local file system where this package has been found. More...
virtual Size get_search_path_index( Size index) const =0
Returns the search path index in the current IMdl_discovery_result. More...
virtual Size get_search_path_index_count() const =0
Returns the number of search paths of this package.
virtual bool  in_archive( Size index) const =0
Returns true if the package has been discovered inside of an archive, false if not. More...

Member Functions

virtual const IMdl_info* mi::​neuraylib::​IMdl_package_info::get_child( Size index) const [pure virtual]

Returns a child of this package.

Parameters

index
Index in the child list of this package.
virtual Size mi::​neuraylib::​IMdl_package_info::get_child_count() const [pure virtual]

Returns the number of modules and packages contained by this package.

virtual const IString* mi::​neuraylib::​IMdl_package_info::get_resolved_path( Size index) const [pure virtual]

Returns an absolute path to package in the local file system.

Parameters

index
Index in the resolved path list of this package.
virtual const char* mi::​neuraylib::​IMdl_package_info::get_search_path( Size index) const [pure virtual]

Returns a search path in the local file system where this package has been found.

Parameters

index
Index in the search path list of this package.
virtual Size mi::​neuraylib::​IMdl_package_info::get_search_path_index( Size index) const [pure virtual]

Returns the search path index in the current IMdl_discovery_result.

Parameters

index
Index in the IMdl_discovery_result search path list.
virtual Size mi::​neuraylib::​IMdl_package_info::get_search_path_index_count() const [pure virtual]

Returns the number of search paths of this package.

virtual bool mi::​neuraylib::​IMdl_package_info::in_archive( Size index) const [pure virtual]

Returns true if the package has been discovered inside of an archive, false if not.

Parameters

index
Index in the interval [0, search_path_index_count).