pub struct vtkResourceFileLocator(/* private fields */);Expand description
utility to locate resource files.
VTK based application often need to locate resource files, such configuration files, Python modules, etc. vtkResourceFileLocator provides methods that can be used to locate such resource files at runtime.
Using Locate, one can locate files relative to an
anchor directory such as the executable directory, or the library directory.
GetLibraryPathForSymbolUnix and GetLibraryPathForSymbolWin32 methods can
be used to locate the library that provides a particular symbol. For example,
this is used by vtkPythonInterpreter to ensure that the vtk Python package
is located relative the VTK libraries, irrespective of the application location.
Implementations§
Source§impl vtkResourceFileLocator
impl vtkResourceFileLocator
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new vtkResourceFileLocator wrapped inside vtkNew
Trait Implementations§
Source§impl Default for vtkResourceFileLocator
impl Default for vtkResourceFileLocator
Source§impl Drop for vtkResourceFileLocator
impl Drop for vtkResourceFileLocator
Auto Trait Implementations§
impl !Send for vtkResourceFileLocator
impl !Sync for vtkResourceFileLocator
impl Freeze for vtkResourceFileLocator
impl RefUnwindSafe for vtkResourceFileLocator
impl Unpin for vtkResourceFileLocator
impl UnsafeUnpin for vtkResourceFileLocator
impl UnwindSafe for vtkResourceFileLocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more