MaterialX 1.39.1
Loading...
Searching...
No Matches
GeomPath Class Reference

A MaterialX geometry path, representing the hierarchical location expressed by a geometry name. More...

#include <Geom.h>

Public Member Functions

bool operator== (const GeomPath &rhs) const
 
bool operator!= (const GeomPath &rhs) const
 
 GeomPath (const string &geom)
 Construct a path from a geometry name string.
 
 operator string () const
 Convert a path to a geometry name string.
 
bool isMatching (const GeomPath &rhs, bool contains=false) const
 Return true if there is any geometry in common between the two paths. More...
 
bool isEmpty () const
 Return true if this geometry path is empty. More...
 
bool isUniversal () const
 Return true if this geometry path is universal. More...
 

Detailed Description

A MaterialX geometry path, representing the hierarchical location expressed by a geometry name.

Member Function Documentation

◆ isEmpty()

bool isEmpty ( ) const
inline

Return true if this geometry path is empty.

An empty path matches no other geometry paths.

◆ isMatching()

bool isMatching ( const GeomPath rhs,
bool  contains = false 
) const
inline

Return true if there is any geometry in common between the two paths.

Parameters
rhsA second geometry path to be compared with this one
containsIf true, then we require that the first path completely contains the second one.

◆ isUniversal()

bool isUniversal ( ) const
inline

Return true if this geometry path is universal.

A universal path matches all non-empty geometry paths.


The documentation for this class was generated from the following file: