| |
- mrpt.pymrpt.mrpt.serialization.CSerializable(mrpt.pymrpt.mrpt.rtti.CObject)
-
- CRenderizable
-
- CCamera
- CRenderizableShaderPoints
-
- CMeshFast
- CPlanarLaserScan(CRenderizableShaderPoints, CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
- CPointCloud(CRenderizableShaderPoints, PLY_Importer, PLY_Exporter)
- CPointCloudColoured(CRenderizableShaderPoints, PLY_Importer, PLY_Exporter)
- CVectorField2D(CRenderizableShaderPoints, CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
- CVectorField3D(CRenderizableShaderPoints, CRenderizableShaderWireFrame)
- CRenderizableShaderText
-
- CText
- CText3D
- CRenderizableShaderTexturedTriangles
-
- CMesh(CRenderizableShaderTexturedTriangles, CRenderizableShaderWireFrame)
- CSetOfTexturedTriangles
- CTexturedPlane(CRenderizableShaderTexturedTriangles, CRenderizableShaderTriangles)
- CRenderizableShaderTriangles
-
- CAngularObservationMesh(CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
- CArrow
- CAssimpModel(CRenderizableShaderTriangles, CRenderizableShaderWireFrame, CRenderizableShaderPoints)
- CBox(CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
- CColorBar(CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
- CCylinder
- CDisk
- CFrustum(CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
- CGeneralizedEllipsoidTemplate_2_t(CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
-
- CEllipsoid2D
- CEllipsoidInverseDepth2D
- CEllipsoidRangeBearing2D(CGeneralizedEllipsoidTemplate_2_t, CRenderizable)
- CGeneralizedEllipsoidTemplate_3_t(CRenderizableShaderTriangles, CRenderizableShaderWireFrame)
-
- CEllipsoid3D
- CEllipsoidInverseDepth3D(CGeneralizedEllipsoidTemplate_3_t, CRenderizable)
- CSphere
- CMesh3D(CRenderizableShaderTriangles, CRenderizableShaderWireFrame, CRenderizableShaderPoints)
- COctoMapVoxels(CRenderizableShaderTriangles, CRenderizableShaderWireFrame, CRenderizableShaderPoints)
- CSetOfTriangles
- CRenderizableShaderWireFrame
-
- CAxis
- CGridPlaneXY
- CGridPlaneXZ
- CPolyhedron(CRenderizableShaderWireFrame, CRenderizableShaderTriangles)
- CSetOfLines(CRenderizableShaderWireFrame, CRenderizableShaderPoints)
- CSimpleLine
- CSetOfObjects
- CSkyBox
- Scene
- Viewport(mrpt.pymrpt.mrpt.serialization.CSerializable, mrpt.pymrpt.mrpt.system.CObservable, CTextMessageCapable)
- mrpt.pymrpt.mrpt.system.CObservable(pybind11_builtins.pybind11_object)
-
- Viewport(mrpt.pymrpt.mrpt.serialization.CSerializable, mrpt.pymrpt.mrpt.system.CObservable, CTextMessageCapable)
- mrpt.pymrpt.mrpt.system.mrptEvent(pybind11_builtins.pybind11_object)
-
- mrptEventGLPostRender
- mrptEventGLPreRender
- pybind11_builtins.pybind11_object(builtins.object)
-
- Buffer
- CFBORender
- CTextMessageCapable
-
- Viewport(mrpt.pymrpt.mrpt.serialization.CSerializable, mrpt.pymrpt.mrpt.system.CObservable, CTextMessageCapable)
- CUBE_TEXTURE_FACE
- DefaultShaderID
- FrameBuffer
- FrameBufferBinding
- PLY_Exporter
- PLY_Importer
- PointCloudAdapter_mrpt_maps_CColouredPointsMap_t
- PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t
- PointCloudAdapter_mrpt_maps_CPointsMap_t
- PointCloudAdapter_mrpt_maps_CSimplePointsMap_t
- PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t
- PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t
- PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t
- PointCloudAdapter_mrpt_opengl_CPointCloud_t
- RenderQueueElement
- RenderQueueStats
- TCullFace
- TFontParams
-
- T2DTextData
- TLightParameters
- TOpenGLFontStyle
- TRenderMatrices
- TTriangle
- Texture
- VertexArrayObject
- Visualizable
- predefined_voxel_sets_t
- texture_name_unit_t
class Buffer(pybind11_builtins.pybind11_object) |
|
A wrapper for an OpenGL buffer object (eg Vertex Buffer Object or VBO)
Refer to docs for glGenBuffers() and glBufferData().
FrameBuffer
OpenGL Buffer Objects *can* be shared among threads. |
|
- Method resolution order:
- Buffer
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.Buffer, type: mrpt::opengl::Buffer::Type) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.Buffer, arg0: mrpt.pymrpt.mrpt.opengl.Buffer) -> None
- allocate(...)
- allocate(self: mrpt.pymrpt.mrpt.opengl.Buffer, data: capsule, byteCount: int) -> None
Reserves byteCount bytes in the buffer and copy to it the provided data.
create() and bind() must be called before using this method.
C++: mrpt::opengl::Buffer::allocate(const void *, int) --> void
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.Buffer, : mrpt.pymrpt.mrpt.opengl.Buffer) -> mrpt.pymrpt.mrpt.opengl.Buffer
C++: mrpt::opengl::Buffer::operator=(const class mrpt::opengl::Buffer &) --> class mrpt::opengl::Buffer &
- bind(...)
- bind(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> None
C++: mrpt::opengl::Buffer::bind() --> void
- bufferId(...)
- bufferId(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> int
C++: mrpt::opengl::Buffer::bufferId() const --> unsigned int
- createOnce(...)
- createOnce(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> None
Calls create() only if the buffer has not been created yet.
C++: mrpt::opengl::Buffer::createOnce() --> void
- destroy(...)
- destroy(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> None
Automatically called upon destructor, no need for the user to call it in
normal situations.
C++: mrpt::opengl::Buffer::destroy() --> void
- initialized(...)
- initialized(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> bool
C++: mrpt::opengl::Buffer::initialized() const --> bool
- setUsage(...)
- setUsage(self: mrpt.pymrpt.mrpt.opengl.Buffer, u: mrpt.pymrpt.mrpt.opengl.Buffer.Usage) -> None
C++: mrpt::opengl::Buffer::setUsage(const enum mrpt::opengl::Buffer::Usage) --> void
- type(...)
- type(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> mrpt.pymrpt.mrpt.opengl.Buffer.Type
C++: mrpt::opengl::Buffer::type() const --> enum mrpt::opengl::Buffer::Type
- unbind(...)
- unbind(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> None
C++: mrpt::opengl::Buffer::unbind() --> void
- usage(...)
- usage(self: mrpt.pymrpt.mrpt.opengl.Buffer) -> mrpt.pymrpt.mrpt.opengl.Buffer.Usage
C++: mrpt::opengl::Buffer::usage() const --> enum mrpt::opengl::Buffer::Usage
Data and other attributes defined here:
- Type = <class 'mrpt.pymrpt.mrpt.opengl.Buffer.Type'>
- Usage = <class 'mrpt.pymrpt.mrpt.opengl.Buffer.Usage'>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CAngularObservationMesh(CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
|
A mesh built from a set of 2D laser scan observations.
Each element of this set is a single scan through the yaw, given a specific
pitch.
Each scan has a mrpt::poses::CPose3D identifying the origin of the scan,
which ideally is the
same for every one of them.
mrpt::opengl::CAngularObservationMesh
preview_CAngularObservationMesh.png |
|
- Method resolution order:
- CAngularObservationMesh
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CAngularObservationMesh::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, arg0: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, arg0: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, : mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh
C++: mrpt::opengl::CAngularObservationMesh::operator=(const class mrpt::opengl::CAngularObservationMesh &) --> class mrpt::opengl::CAngularObservationMesh &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CAngularObservationMesh::clone() const --> class mrpt::rtti::CObject *
- enableTransparency(...)
- enableTransparency(*args, **kwargs)
Overloaded function.
1. enableTransparency(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
2. enableTransparency(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, enabled: bool) -> None
Enables or disables transparencies.
C++: mrpt::opengl::CAngularObservationMesh::enableTransparency(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
@{
C++: mrpt::opengl::CAngularObservationMesh::freeOpenGLResources() --> void
- generatePointCloud(...)
- generatePointCloud(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, out_map: mrpt.pymrpt.mrpt.maps.CPointsMap) -> None
Returns the scanned points as a 3D point cloud. The target pointmap must
be passed as a pointer to allow the use of any derived class.
C++: mrpt::opengl::CAngularObservationMesh::generatePointCloud(class mrpt::maps::CPointsMap *) const --> void
- generateSetOfTriangles(...)
- generateSetOfTriangles(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, res: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
Gets the mesh as a set of triangles, for displaying them.
generateSetOfTriangles(std::vector<TPolygon3D>
&),mrpt::opengl::CSetOfTriangles,mrpt::opengl::mrpt::opengl::TTriangle
C++: mrpt::opengl::CAngularObservationMesh::generateSetOfTriangles(class std::shared_ptr<class mrpt::opengl::CSetOfTriangles> &) const --> void
- getPitchBounds(...)
- getPitchBounds(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, initial: float, final: float) -> None
Gets the initial and final pitch bounds for this range.
C++: mrpt::opengl::CAngularObservationMesh::getPitchBounds(double &, double &) const --> void
- getTracedRays(...)
- getTracedRays(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, res: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
Gets a set of lines containing the traced rays, for displaying them.
getUntracedRays,mrpt::opengl::CSetOfLines
C++: mrpt::opengl::CAngularObservationMesh::getTracedRays(class std::shared_ptr<class mrpt::opengl::CSetOfLines> &) const --> void
- getUntracedRays(...)
- getUntracedRays(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, res: mrpt.pymrpt.mrpt.opengl.CSetOfLines, dist: float) -> None
Gets a set of lines containing the untraced rays, up to a specified
distance, for displaying them.
getTracedRays,mrpt::opengl::CSetOfLines
C++: mrpt::opengl::CAngularObservationMesh::getUntracedRays(class std::shared_ptr<class mrpt::opengl::CSetOfLines> &, double) const --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CAngularObservationMesh::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isTransparencyEnabled(...)
- isTransparencyEnabled(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> bool
Returns whether the object may be transparent or not.
C++: mrpt::opengl::CAngularObservationMesh::isTransparencyEnabled() const --> bool
- isWireframe(...)
- isWireframe(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> bool
Returns whether the object is configured as wireframe or solid.
C++: mrpt::opengl::CAngularObservationMesh::isWireframe() const --> bool
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
C++: mrpt::opengl::CAngularObservationMesh::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
C++: mrpt::opengl::CAngularObservationMesh::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
C++: mrpt::opengl::CAngularObservationMesh::renderUpdateBuffers() const --> void
- setPitchBounds(...)
- setPitchBounds(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, initial: float, final: float) -> None
Sets the pitch bounds for this range.
C++: mrpt::opengl::CAngularObservationMesh::setPitchBounds(const double, const double) --> void
- setWireframe(...)
- setWireframe(*args, **kwargs)
Overloaded function.
1. setWireframe(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh) -> None
2. setWireframe(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, enabled: bool) -> None
Sets the display mode for the object. True=wireframe, False=solid.
C++: mrpt::opengl::CAngularObservationMesh::setWireframe(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Traces a ray to the object, returning the distance to a given pose
through its X axis.
mrpt::opengl::CRenderizable,trace2DSetOfRays,trace1DSetOfRays
C++: mrpt::opengl::CAngularObservationMesh::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CAngularObservationMesh::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CAngularObservationMesh::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Data and other attributes defined here:
- TDoubleRange = <class 'mrpt.pymrpt.mrpt.opengl.CAngularObservationMesh.TDoubleRange'>
- Range specification type, with several uses.
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CArrow(CRenderizableShaderTriangles) |
|
A 3D arrow
![mrpt::opengl::CArrow](preview_CArrow.png)
opengl::Scene |
|
- Method resolution order:
- CArrow
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CArrow) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CArrow::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) -> None
doc
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
doc
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float, arg7: float) -> None
doc
10. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float, headRatio: float, smallRadius: float, largeRadius: float) -> None
11. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: mrpt::math::TPoint3D_<float>, arg1: mrpt::math::TPoint3D_<float>) -> None
doc
12. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: mrpt::math::TPoint3D_<float>, arg1: mrpt::math::TPoint3D_<float>, arg2: float) -> None
doc
13. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: mrpt::math::TPoint3D_<float>, arg1: mrpt::math::TPoint3D_<float>, arg2: float, arg3: float) -> None
doc
14. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, from: mrpt::math::TPoint3D_<float>, to: mrpt::math::TPoint3D_<float>, headRatio: float, smallRadius: float, largeRadius: float) -> None
15. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: mrpt.pymrpt.mrpt.opengl.CArrow) -> None
16. __init__(self: mrpt.pymrpt.mrpt.opengl.CArrow, arg0: mrpt.pymrpt.mrpt.opengl.CArrow) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CArrow, : mrpt.pymrpt.mrpt.opengl.CArrow) -> mrpt.pymrpt.mrpt.opengl.CArrow
C++: mrpt::opengl::CArrow::operator=(const class mrpt::opengl::CArrow &) --> class mrpt::opengl::CArrow &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CArrow) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CArrow::clone() const --> class mrpt::rtti::CObject *
- getSlicesCount(...)
- getSlicesCount(self: mrpt.pymrpt.mrpt.opengl.CArrow) -> int
Number of radial divisions
C++: mrpt::opengl::CArrow::getSlicesCount() const --> uint32_t
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CArrow) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CArrow::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CArrow) -> None
@{
C++: mrpt::opengl::CArrow::onUpdateBuffers_Triangles() --> void
- setArrowEnds(...)
- setArrowEnds(self: mrpt.pymrpt.mrpt.opengl.CArrow, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float) -> None
@}
C++: mrpt::opengl::CArrow::setArrowEnds(float, float, float, float, float, float) --> void
- setHeadRatio(...)
- setHeadRatio(self: mrpt.pymrpt.mrpt.opengl.CArrow, rat: float) -> None
C++: mrpt::opengl::CArrow::setHeadRatio(float) --> void
- setLargeRadius(...)
- setLargeRadius(self: mrpt.pymrpt.mrpt.opengl.CArrow, rat: float) -> None
C++: mrpt::opengl::CArrow::setLargeRadius(float) --> void
- setSlicesCount(...)
- setSlicesCount(self: mrpt.pymrpt.mrpt.opengl.CArrow, slices: int) -> None
Number of radial divisions
C++: mrpt::opengl::CArrow::setSlicesCount(uint32_t) --> void
- setSmallRadius(...)
- setSmallRadius(self: mrpt.pymrpt.mrpt.opengl.CArrow, rat: float) -> None
C++: mrpt::opengl::CArrow::setSmallRadius(float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CArrow::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CArrow::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::freeOpenGLResources() --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::renderUpdateBuffers() const --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CAssimpModel(CRenderizableShaderTriangles, CRenderizableShaderWireFrame, CRenderizableShaderPoints) |
|
This class can load & render 3D models in a number of different formats
(requires the library assimp).
- All supported formats:
http://assimp.sourceforge.net/main_features_formats.html
- Most common ones: AutoCAD DXF ( .dxf ), Collada ( .dae ), Blender 3D (
.blend ), 3ds Max 3DS ( .3ds ), 3ds Max ASE ( .ase ), Quake I ( .mdl ), Quake
II ( .md2 ), Quake III Mesh ( .md3 ), etc.
Models are loaded via CAssimpModel::loadScene()
![mrpt::opengl::CAssimpModel](preview_CAssimpModel.png)
opengl::Scene |
|
- Method resolution order:
- CAssimpModel
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CAssimpModel::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel, arg0: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel, arg0: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel, : mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> mrpt.pymrpt.mrpt.opengl.CAssimpModel
C++: mrpt::opengl::CAssimpModel::operator=(const class mrpt::opengl::CAssimpModel &) --> class mrpt::opengl::CAssimpModel &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
Empty the object
C++: mrpt::opengl::CAssimpModel::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CAssimpModel::clone() const --> class mrpt::rtti::CObject *
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
C++: mrpt::opengl::CAssimpModel::freeOpenGLResources() --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CAssimpModel::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> bool
C++: mrpt::opengl::CAssimpModel::isCompositeObject() const --> bool
- loadScene(...)
- loadScene(*args, **kwargs)
Overloaded function.
1. loadScene(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel, file_name: str) -> None
2. loadScene(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel, file_name: str, flags: int) -> None
Loads a scene from a file in any supported file.
std::runtime_error On any error during loading or importing
the file.
C++: mrpt::opengl::CAssimpModel::loadScene(const std::string &, const int) --> void
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
C++: mrpt::opengl::CAssimpModel::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
C++: mrpt::opengl::CAssimpModel::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
C++: mrpt::opengl::CAssimpModel::onUpdateBuffers_Wireframe() --> void
- onUpdateBuffers_all(...)
- onUpdateBuffers_all(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
C++: mrpt::opengl::CAssimpModel::onUpdateBuffers_all() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel) -> None
C++: mrpt::opengl::CAssimpModel::renderUpdateBuffers() const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CAssimpModel, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CAssimpModel::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CAssimpModel::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CAssimpModel::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Data and other attributes defined here:
- LoadFlags = <class 'mrpt.pymrpt.mrpt.opengl.CAssimpModel.LoadFlags'>
- Import flags for loadScene
- TInfoPerTexture = <class 'mrpt.pymrpt.mrpt.opengl.CAssimpModel.TInfoPerTexture'>
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CAxis(CRenderizableShaderWireFrame) |
|
Draw a 3D world axis, with coordinate marks at some regular interval
opengl::Scene
![mrpt::opengl::CAxis](preview_CAxis.png) |
|
- Method resolution order:
- CAxis
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CAxis::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) -> None
doc
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
doc
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float, arg7: float) -> None
doc
10. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, xmin: float, ymin: float, zmin: float, xmax: float, ymax: float, zmax: float, frecuency: float, lineWidth: float, marks: bool) -> None
11. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: mrpt.pymrpt.mrpt.opengl.CAxis) -> None
12. __init__(self: mrpt.pymrpt.mrpt.opengl.CAxis, arg0: mrpt.pymrpt.mrpt.opengl.CAxis) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CAxis, : mrpt.pymrpt.mrpt.opengl.CAxis) -> mrpt.pymrpt.mrpt.opengl.CAxis
C++: mrpt::opengl::CAxis::operator=(const class mrpt::opengl::CAxis &) --> class mrpt::opengl::CAxis &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CAxis::clone() const --> class mrpt::rtti::CObject *
- enableTickMarks(...)
- enableTickMarks(*args, **kwargs)
Overloaded function.
1. enableTickMarks(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> None
2. enableTickMarks(self: mrpt.pymrpt.mrpt.opengl.CAxis, v: bool) -> None
C++: mrpt::opengl::CAxis::enableTickMarks(bool) --> void
3. enableTickMarks(self: mrpt.pymrpt.mrpt.opengl.CAxis, show_x: bool, show_y: bool, show_z: bool) -> None
C++: mrpt::opengl::CAxis::enableTickMarks(bool, bool, bool) --> void
- getFrequency(...)
- getFrequency(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> float
C++: mrpt::opengl::CAxis::getFrequency() const --> float
- getTextLabelOrientation(...)
- getTextLabelOrientation(self: mrpt.pymrpt.mrpt.opengl.CAxis, axis: int, yaw_deg: float, pitch_deg: float, roll_deg: float) -> None
axis: {0,1,2}=>{X,Y,Z}
C++: mrpt::opengl::CAxis::getTextLabelOrientation(int, float &, float &, float &) const --> void
- getTextScale(...)
- getTextScale(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> float
C++: mrpt::opengl::CAxis::getTextScale() const --> float
- getTickMarksLength(...)
- getTickMarksLength(self: mrpt.pymrpt.mrpt.opengl.CAxis, len: float) -> float
C++: mrpt::opengl::CAxis::getTickMarksLength(float) --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CAxis::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> bool
C++: mrpt::opengl::CAxis::isCompositeObject() const --> bool
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CAxis) -> None
@{
C++: mrpt::opengl::CAxis::onUpdateBuffers_Wireframe() --> void
- setAxisLimits(...)
- setAxisLimits(self: mrpt.pymrpt.mrpt.opengl.CAxis, xmin: float, ymin: float, zmin: float, xmax: float, ymax: float, zmax: float) -> None
C++: mrpt::opengl::CAxis::setAxisLimits(float, float, float, float, float, float) --> void
- setFrequency(...)
- setFrequency(self: mrpt.pymrpt.mrpt.opengl.CAxis, f: float) -> None
Changes the frequency of the "ticks"
C++: mrpt::opengl::CAxis::setFrequency(float) --> void
- setTextLabelOrientation(...)
- setTextLabelOrientation(self: mrpt.pymrpt.mrpt.opengl.CAxis, axis: int, yaw_deg: float, pitch_deg: float, roll_deg: float) -> None
axis: {0,1,2}=>{X,Y,Z}
C++: mrpt::opengl::CAxis::setTextLabelOrientation(int, float, float, float) --> void
- setTextScale(...)
- setTextScale(self: mrpt.pymrpt.mrpt.opengl.CAxis, f: float) -> None
Changes the size of text labels (default:0.25)
C++: mrpt::opengl::CAxis::setTextScale(float) --> void
- setTickMarksLength(...)
- setTickMarksLength(self: mrpt.pymrpt.mrpt.opengl.CAxis, len: float) -> None
As a ratio of "marks frequency" (default: 0.05)
C++: mrpt::opengl::CAxis::setTickMarksLength(float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CAxis::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CAxis::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::freeOpenGLResources() --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::renderUpdateBuffers() const --> void
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CBox(CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
|
A solid or wireframe box in 3D, defined by 6 rectangular faces parallel to
the planes X, Y and Z (note that the object can be translated and rotated
afterwards as any other CRenderizable object using the "object pose" in the
base class).
Three drawing modes are possible:
- Wireframe: setWireframe(true). Used color is the CRenderizable color
- Solid box: setWireframe(false). Used color is the CRenderizable color
- Solid box with border: setWireframe(false) + enableBoxBorder(true). Solid
color is the CRenderizable color, border line can be set with
setBoxBorderColor().
![mrpt::opengl::CBox](preview_CBox.png)
opengl::Scene,opengl::CRenderizable |
|
- Method resolution order:
- CBox
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CBox) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CBox::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CBox, arg0: mrpt::math::TPoint3D_<double>, arg1: mrpt::math::TPoint3D_<double>) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CBox, arg0: mrpt::math::TPoint3D_<double>, arg1: mrpt::math::TPoint3D_<double>, arg2: bool) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CBox, corner1: mrpt::math::TPoint3D_<double>, corner2: mrpt::math::TPoint3D_<double>, is_wireframe: bool, lineWidth: float) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CBox, arg0: mrpt.pymrpt.mrpt.opengl.CBox) -> None
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CBox, arg0: mrpt.pymrpt.mrpt.opengl.CBox) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CBox, : mrpt.pymrpt.mrpt.opengl.CBox) -> mrpt.pymrpt.mrpt.opengl.CBox
C++: mrpt::opengl::CBox::operator=(const class mrpt::opengl::CBox &) --> class mrpt::opengl::CBox &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CBox) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CBox::clone() const --> class mrpt::rtti::CObject *
- enableBoxBorder(...)
- enableBoxBorder(*args, **kwargs)
Overloaded function.
1. enableBoxBorder(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
2. enableBoxBorder(self: mrpt.pymrpt.mrpt.opengl.CBox, drawBorder: bool) -> None
C++: mrpt::opengl::CBox::enableBoxBorder(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
C++: mrpt::opengl::CBox::freeOpenGLResources() --> void
- getBoxBorderColor(...)
- getBoxBorderColor(self: mrpt.pymrpt.mrpt.opengl.CBox) -> mrpt.pymrpt.mrpt.img.TColor
C++: mrpt::opengl::CBox::getBoxBorderColor() const --> struct mrpt::img::TColor
- getBoxCorners(...)
- getBoxCorners(self: mrpt.pymrpt.mrpt.opengl.CBox, corner1: mrpt::math::TPoint3D_<double>, corner2: mrpt::math::TPoint3D_<double>) -> None
C++: mrpt::opengl::CBox::getBoxCorners(struct mrpt::math::TPoint3D_<double> &, struct mrpt::math::TPoint3D_<double> &) const --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CBox) -> float
C++: mrpt::opengl::CBox::getLineWidth() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CBox) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
@}
C++: mrpt::opengl::CBox::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isBoxBorderEnabled(...)
- isBoxBorderEnabled(self: mrpt.pymrpt.mrpt.opengl.CBox) -> bool
C++: mrpt::opengl::CBox::isBoxBorderEnabled() const --> bool
- isWireframe(...)
- isWireframe(self: mrpt.pymrpt.mrpt.opengl.CBox) -> bool
C++: mrpt::opengl::CBox::isWireframe() const --> bool
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
C++: mrpt::opengl::CBox::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
C++: mrpt::opengl::CBox::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
C++: mrpt::opengl::CBox::renderUpdateBuffers() const --> void
- setBoxBorderColor(...)
- setBoxBorderColor(self: mrpt.pymrpt.mrpt.opengl.CBox, c: mrpt.pymrpt.mrpt.img.TColor) -> None
C++: mrpt::opengl::CBox::setBoxBorderColor(const struct mrpt::img::TColor &) --> void
- setBoxCorners(...)
- setBoxCorners(self: mrpt.pymrpt.mrpt.opengl.CBox, corner1: mrpt::math::TPoint3D_<double>, corner2: mrpt::math::TPoint3D_<double>) -> None
Set the position and size of the box, from two corners in 3D
C++: mrpt::opengl::CBox::setBoxCorners(const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &) --> void
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CBox, width: float) -> None
C++: mrpt::opengl::CBox::setLineWidth(float) --> void
- setWireframe(...)
- setWireframe(*args, **kwargs)
Overloaded function.
1. setWireframe(self: mrpt.pymrpt.mrpt.opengl.CBox) -> None
2. setWireframe(self: mrpt.pymrpt.mrpt.opengl.CBox, is_wireframe: bool) -> None
C++: mrpt::opengl::CBox::setWireframe(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CBox, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Ray tracing.
mrpt::opengl::CRenderizable
C++: mrpt::opengl::CBox::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create() -> mrpt.pymrpt.mrpt.opengl.CBox
C++: mrpt::opengl::CBox::Create() --> class std::shared_ptr<class mrpt::opengl::CBox>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CBox::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CBox::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CCamera(CRenderizable) |
|
Defines the intrinsic and extrinsic camera coordinates from which to render
a 3D scene.
By default, each viewport has its own camera, accesible via
Viewport::getCamera(), but if a CCamera object is added as an object
to be rendered, it will override the internal viewport camera.
Available projection models:
- Projective model, parameterized via setProjectiveFOVdeg() (vertical field
of view, in degrees)
- Projective model, by means of a computer vision pinhole intrinsic
parameter set: see setProjectiveFromPinhole()
- Orthogonal projection model: use setProjectiveModel(false), or
setOrthogonal(), or
- No projection mode: use `setNoProjection()`. Viewport coordinates are
fixed to bottomLeft=(-1,-1) to rightTop=(+1,+1).
Defining the position and orientation of a camera is possible by:
- Using an "orbit" model: defined by a "pointing to" point, a distance to
object, and azimuth + elevation angles; or
- Directly giving the SE(3) camera pose, setting the set6DOFMode() to `true`
and storing the desired pose with CRenderizable::setPose(). Pose axis
convention is +Z pointing forwards, +X right, +Y down.
opengl::Scene |
|
- Method resolution order:
- CCamera
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CCamera::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CCamera, arg0: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CCamera, arg0: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CCamera, : mrpt.pymrpt.mrpt.opengl.CCamera) -> mrpt.pymrpt.mrpt.opengl.CCamera
C++: mrpt::opengl::CCamera::operator=(const class mrpt::opengl::CCamera &) --> class mrpt::opengl::CCamera &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CCamera::clone() const --> class mrpt::rtti::CObject *
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
C++: mrpt::opengl::CCamera::freeOpenGLResources() --> void
- getAzimuthDegrees(...)
- getAzimuthDegrees(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
C++: mrpt::opengl::CCamera::getAzimuthDegrees() const --> float
- getElevationDegrees(...)
- getElevationDegrees(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
C++: mrpt::opengl::CCamera::getElevationDegrees() const --> float
- getPointingAt(...)
- getPointingAt(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> mrpt::math::TPoint3D_<float>
C++: mrpt::opengl::CCamera::getPointingAt() const --> struct mrpt::math::TPoint3D_<float>
- getPointingAtX(...)
- getPointingAtX(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
C++: mrpt::opengl::CCamera::getPointingAtX() const --> float
- getPointingAtY(...)
- getPointingAtY(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
C++: mrpt::opengl::CCamera::getPointingAtY() const --> float
- getPointingAtZ(...)
- getPointingAtZ(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
C++: mrpt::opengl::CCamera::getPointingAtZ() const --> float
- getProjectiveFOVdeg(...)
- getProjectiveFOVdeg(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
Field-of-View in degs, only when projectiveModel=true (default=30 deg).
C++: mrpt::opengl::CCamera::getProjectiveFOVdeg() const --> float
- getZoomDistance(...)
- getZoomDistance(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> float
C++: mrpt::opengl::CCamera::getZoomDistance() const --> float
- hasPinholeModel(...)
- hasPinholeModel(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> bool
C++: mrpt::opengl::CCamera::hasPinholeModel() const --> bool
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
In this class, returns a fixed box (max,max,max), (-max,-max,-max).
C++: mrpt::opengl::CCamera::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- is6DOFMode(...)
- is6DOFMode(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> bool
C++: mrpt::opengl::CCamera::is6DOFMode() const --> bool
- isNoProjection(...)
- isNoProjection(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> bool
C++: mrpt::opengl::CCamera::isNoProjection() const --> bool
- isOrthogonal(...)
- isOrthogonal(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> bool
C++: mrpt::opengl::CCamera::isOrthogonal() const --> bool
- isProjective(...)
- isProjective(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> bool
C++: mrpt::opengl::CCamera::isProjective() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
Render does nothing here.
C++: mrpt::opengl::CCamera::renderUpdateBuffers() const --> void
- set6DOFMode(...)
- set6DOFMode(self: mrpt.pymrpt.mrpt.opengl.CCamera, v: bool) -> None
Set 6DOFMode, if enabled camera is set according to its pose, set via
CRenderizable::setPose(). (default=false).
Conventionally, eye is set looking towards +Z axis, "down" is the +Y
axis, right is "+X" axis. In this mode azimuth/elevation are ignored.
C++: mrpt::opengl::CCamera::set6DOFMode(bool) --> void
- setAzimuthDegrees(...)
- setAzimuthDegrees(self: mrpt.pymrpt.mrpt.opengl.CCamera, ang: float) -> None
C++: mrpt::opengl::CCamera::setAzimuthDegrees(float) --> void
- setElevationDegrees(...)
- setElevationDegrees(self: mrpt.pymrpt.mrpt.opengl.CCamera, ang: float) -> None
C++: mrpt::opengl::CCamera::setElevationDegrees(float) --> void
- setNoProjection(...)
- setNoProjection(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
Disable all coordinate transformations and allow direct use of pixel
coordinates, that is, the projection matrix is the identity.
In this mode, (-1,-1) is the bottom-left corner and (+1,+1) the top-right
corner, per OpenGL defaults. This mode can be disabled calling
setProjectiveModel() or setOrthogonal()
C++: mrpt::opengl::CCamera::setNoProjection() --> void
- setOrthogonal(...)
- setOrthogonal(*args, **kwargs)
Overloaded function.
1. setOrthogonal(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
2. setOrthogonal(self: mrpt.pymrpt.mrpt.opengl.CCamera, v: bool) -> None
Enable/Disable orthogonal mode (vs. projective)
C++: mrpt::opengl::CCamera::setOrthogonal(bool) --> void
- setPointingAt(...)
- setPointingAt(*args, **kwargs)
Overloaded function.
1. setPointingAt(self: mrpt.pymrpt.mrpt.opengl.CCamera, x: float, y: float, z: float) -> None
@{
C++: mrpt::opengl::CCamera::setPointingAt(float, float, float) --> void
2. setPointingAt(self: mrpt.pymrpt.mrpt.opengl.CCamera, p: mrpt::math::TPoint3D_<double>) -> None
C++: mrpt::opengl::CCamera::setPointingAt(const struct mrpt::math::TPoint3D_<double> &) --> void
- setProjectiveFOVdeg(...)
- setProjectiveFOVdeg(self: mrpt.pymrpt.mrpt.opengl.CCamera, ang: float) -> None
Vertical field-of-View in degs, only when projectiveModel=true
(default=30 deg).
C++: mrpt::opengl::CCamera::setProjectiveFOVdeg(float) --> void
- setProjectiveFromPinhole(...)
- setProjectiveFromPinhole(self: mrpt.pymrpt.mrpt.opengl.CCamera, camIntrinsics: mrpt.pymrpt.mrpt.img.TCamera) -> None
C++: mrpt::opengl::CCamera::setProjectiveFromPinhole(const class mrpt::img::TCamera &) --> void
- setProjectiveModel(...)
- setProjectiveModel(*args, **kwargs)
Overloaded function.
1. setProjectiveModel(self: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
2. setProjectiveModel(self: mrpt.pymrpt.mrpt.opengl.CCamera, v: bool) -> None
Enable/Disable projective mode (vs. orthogonal).
C++: mrpt::opengl::CCamera::setProjectiveModel(bool) --> void
- setZoomDistance(...)
- setZoomDistance(self: mrpt.pymrpt.mrpt.opengl.CCamera, z: float) -> None
C++: mrpt::opengl::CCamera::setZoomDistance(float) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CCamera, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
C++: mrpt::opengl::CCamera::toYAMLMap(class mrpt::containers::yaml &) const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CCamera::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CCamera::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CColorBar(CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
|
A colorbar indicator. This class renders a colorbar as a 3D object, in the
XY plane.
For an overlay indicator that can be easily added to any display, see
Scene::addColorBar()
![mrpt::opengl::CColorBar](preview_CColorBar.png)
opengl::Scene,opengl::CRenderizable, Scene::addColorBar() |
|
- Method resolution order:
- CColorBar
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CColorBar::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float, arg2: float, arg3: float, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) -> None
doc
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
doc
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.img.TColormap, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float, arg7: str) -> None
doc
10. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, colormap: mrpt.pymrpt.mrpt.img.TColormap, width: float, height: float, min_col: float, max_col: float, min_value: float, max_value: float, label_format: str, label_font_size: float) -> None
11. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
12. __init__(self: mrpt.pymrpt.mrpt.opengl.CColorBar, arg0: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CColorBar, : mrpt.pymrpt.mrpt.opengl.CColorBar) -> mrpt.pymrpt.mrpt.opengl.CColorBar
C++: mrpt::opengl::CColorBar::operator=(const class mrpt::opengl::CColorBar &) --> class mrpt::opengl::CColorBar &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CColorBar::clone() const --> class mrpt::rtti::CObject *
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
C++: mrpt::opengl::CColorBar::freeOpenGLResources() --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
@}
C++: mrpt::opengl::CColorBar::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
C++: mrpt::opengl::CColorBar::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
C++: mrpt::opengl::CColorBar::onUpdateBuffers_Wireframe() --> void
- onUpdateBuffers_all(...)
- onUpdateBuffers_all(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
C++: mrpt::opengl::CColorBar::onUpdateBuffers_all() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CColorBar) -> None
C++: mrpt::opengl::CColorBar::renderUpdateBuffers() const --> void
- setColorAndValueLimits(...)
- setColorAndValueLimits(self: mrpt.pymrpt.mrpt.opengl.CColorBar, col_min: float, col_max: float, value_min: float, value_max: float) -> None
C++: mrpt::opengl::CColorBar::setColorAndValueLimits(float, float, float, float) --> void
- setColormap(...)
- setColormap(self: mrpt.pymrpt.mrpt.opengl.CColorBar, colormap: mrpt.pymrpt.mrpt.img.TColormap) -> None
C++: mrpt::opengl::CColorBar::setColormap(const enum mrpt::img::TColormap) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CColorBar::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CColorBar::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CCylinder(CRenderizableShaderTriangles) |
|
A cylinder or cone whose base lies in the XY plane.
![mrpt::opengl::CCylinder](preview_CCylinder.png)
opengl::Scene,opengl::CDisk |
|
- Method resolution order:
- CCylinder
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CCylinder::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CCylinder, arg0: float, arg1: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CCylinder, arg0: float, arg1: float, arg2: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CCylinder, baseRadius: float, topRadius: float, height: float, slices: int) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CCylinder, arg0: mrpt.pymrpt.mrpt.opengl.CCylinder) -> None
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CCylinder, arg0: mrpt.pymrpt.mrpt.opengl.CCylinder) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CCylinder, : mrpt.pymrpt.mrpt.opengl.CCylinder) -> mrpt.pymrpt.mrpt.opengl.CCylinder
C++: mrpt::opengl::CCylinder::operator=(const class mrpt::opengl::CCylinder &) --> class mrpt::opengl::CCylinder &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CCylinder::clone() const --> class mrpt::rtti::CObject *
- getBottomRadius(...)
- getBottomRadius(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> float
Gets the bottom radius.
C++: mrpt::opengl::CCylinder::getBottomRadius() const --> float
- getHeight(...)
- getHeight(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> float
Gets the cylinder's height.
C++: mrpt::opengl::CCylinder::getHeight() const --> float
- getSlicesCount(...)
- getSlicesCount(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> int
Number of radial divisions
C++: mrpt::opengl::CCylinder::getSlicesCount() const --> uint32_t
- getTopRadius(...)
- getTopRadius(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> float
Gets the top radius.
C++: mrpt::opengl::CCylinder::getTopRadius() const --> float
- hasBottomBase(...)
- hasBottomBase(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> bool
Check whether bottom base is displayed.
hasTopBase
C++: mrpt::opengl::CCylinder::hasBottomBase() const --> bool
- hasTopBase(...)
- hasTopBase(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> bool
Check whether top base is displayed.
hasBottomBase
C++: mrpt::opengl::CCylinder::hasTopBase() const --> bool
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CCylinder::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> None
@{
C++: mrpt::opengl::CCylinder::onUpdateBuffers_Triangles() --> void
- setHasBases(...)
- setHasBases(*args, **kwargs)
Overloaded function.
1. setHasBases(self: mrpt.pymrpt.mrpt.opengl.CCylinder) -> None
2. setHasBases(self: mrpt.pymrpt.mrpt.opengl.CCylinder, top: bool) -> None
3. setHasBases(self: mrpt.pymrpt.mrpt.opengl.CCylinder, top: bool, bottom: bool) -> None
Configuration of the cylinder's bases display.
C++: mrpt::opengl::CCylinder::setHasBases(bool, bool) --> void
- setHeight(...)
- setHeight(self: mrpt.pymrpt.mrpt.opengl.CCylinder, height: float) -> None
Chenges cylinder's height.
C++: mrpt::opengl::CCylinder::setHeight(float) --> void
- setRadii(...)
- setRadii(self: mrpt.pymrpt.mrpt.opengl.CCylinder, bottom: float, top: float) -> None
Sets both radii independently.
setRadius
C++: mrpt::opengl::CCylinder::setRadii(float, float) --> void
- setRadius(...)
- setRadius(self: mrpt.pymrpt.mrpt.opengl.CCylinder, radius: float) -> None
Sets both radii to a single value, thus configuring the object as a
cylinder.
setRadii
C++: mrpt::opengl::CCylinder::setRadius(float) --> void
- setSlicesCount(...)
- setSlicesCount(self: mrpt.pymrpt.mrpt.opengl.CCylinder, slices: int) -> None
Number of radial divisions
C++: mrpt::opengl::CCylinder::setSlicesCount(uint32_t) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CCylinder, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
@}
C++: mrpt::opengl::CCylinder::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CCylinder::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CCylinder::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::freeOpenGLResources() --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::renderUpdateBuffers() const --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CDisk(CRenderizableShaderTriangles) |
|
A planar disk in the XY plane.
![mrpt::opengl::CDisk](preview_CDisk.png)
opengl::Scene |
|
- Method resolution order:
- CDisk
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CDisk::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CDisk, arg0: float, arg1: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CDisk, rOut: float, rIn: float, slices: int) -> None
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CDisk, arg0: mrpt.pymrpt.mrpt.opengl.CDisk) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CDisk, arg0: mrpt.pymrpt.mrpt.opengl.CDisk) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CDisk, : mrpt.pymrpt.mrpt.opengl.CDisk) -> mrpt.pymrpt.mrpt.opengl.CDisk
C++: mrpt::opengl::CDisk::operator=(const class mrpt::opengl::CDisk &) --> class mrpt::opengl::CDisk &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CDisk::clone() const --> class mrpt::rtti::CObject *
- getInRadius(...)
- getInRadius(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> float
C++: mrpt::opengl::CDisk::getInRadius() const --> float
- getOutRadius(...)
- getOutRadius(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> float
C++: mrpt::opengl::CDisk::getOutRadius() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CDisk::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CDisk) -> None
@{
C++: mrpt::opengl::CDisk::onUpdateBuffers_Triangles() --> void
- setDiskRadius(...)
- setDiskRadius(*args, **kwargs)
Overloaded function.
1. setDiskRadius(self: mrpt.pymrpt.mrpt.opengl.CDisk, outRadius: float) -> None
2. setDiskRadius(self: mrpt.pymrpt.mrpt.opengl.CDisk, outRadius: float, inRadius: float) -> None
@}
C++: mrpt::opengl::CDisk::setDiskRadius(float, float) --> void
- setSlicesCount(...)
- setSlicesCount(self: mrpt.pymrpt.mrpt.opengl.CDisk, N: int) -> None
Default=50
C++: mrpt::opengl::CDisk::setSlicesCount(uint32_t) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CDisk, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Ray tracing
C++: mrpt::opengl::CDisk::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CDisk::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CDisk::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::freeOpenGLResources() --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::renderUpdateBuffers() const --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CEllipsoid2D(CGeneralizedEllipsoidTemplate_2_t) |
|
A 2D ellipse on the XY plane, centered at the origin of this object pose.
The color is determined by the RGBA fields in the class "CRenderizable".
Note that a transparent ellipse can be drawn for "0<alpha<1" values.
If any of the eigen value of the covariance matrix of the ellipsoid is
zero, it will not be rendered.
Please read the documentation of
CGeneralizedEllipsoidTemplate::setQuantiles() for learning
the mathematical details about setting the desired confidence interval.
![mrpt::opengl::CEllipsoid2D](preview_CEllipsoid.png)
opengl::Scene |
|
- Method resolution order:
- CEllipsoid2D
- CGeneralizedEllipsoidTemplate_2_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoid2D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D, : mrpt.pymrpt.mrpt.opengl.CEllipsoid2D) -> mrpt.pymrpt.mrpt.opengl.CEllipsoid2D
C++: mrpt::opengl::CEllipsoid2D::operator=(const class mrpt::opengl::CEllipsoid2D &) --> class mrpt::opengl::CEllipsoid2D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoid2D::clone() const --> class mrpt::rtti::CObject *
- set2DsegmentsCount(...)
- set2DsegmentsCount(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D, N: int) -> None
The number of segments of a 2D ellipse (default=20)
C++: mrpt::opengl::CEllipsoid2D::set2DsegmentsCount(unsigned int) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid2D, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Ray tracing
C++: mrpt::opengl::CEllipsoid2D::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoid2D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoid2D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CGeneralizedEllipsoidTemplate_2_t:
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_2UL_2UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 2, 2>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::renderUpdateBuffers() const --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setQuantiles(float) --> void
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CEllipsoid3D(CGeneralizedEllipsoidTemplate_3_t) |
|
A 3D ellipsoid, centered at zero with respect to this object pose.
The color is determined by the RGBA fields in the class "CRenderizable".
Note that a transparent ellipsoid can be drawn for "0<alpha<1" values.
If any of the eigen values of the covariance matrix of the ellipsoid is
zero, nothing will be rendered.
Please read the documentation of
CGeneralizedEllipsoidTemplate::setQuantiles() for learning
the mathematical details about setting the desired confidence interval.
![mrpt::opengl::CEllipsoid3D](preview_CEllipsoid.png)
opengl::Scene |
|
- Method resolution order:
- CEllipsoid3D
- CGeneralizedEllipsoidTemplate_3_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoid3D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D, : mrpt.pymrpt.mrpt.opengl.CEllipsoid3D) -> mrpt.pymrpt.mrpt.opengl.CEllipsoid3D
C++: mrpt::opengl::CEllipsoid3D::operator=(const class mrpt::opengl::CEllipsoid3D &) --> class mrpt::opengl::CEllipsoid3D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoid3D::clone() const --> class mrpt::rtti::CObject *
- set3DsegmentsCount(...)
- set3DsegmentsCount(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D, N: int) -> None
The number of segments of a 3D ellipse (in both "axes") (default=20)
C++: mrpt::opengl::CEllipsoid3D::set3DsegmentsCount(unsigned int) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CEllipsoid3D, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Ray tracing
C++: mrpt::opengl::CEllipsoid3D::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoid3D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoid3D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CGeneralizedEllipsoidTemplate_3_t:
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 3, 3>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::renderUpdateBuffers() const --> void
- setCovMatrix(...)
- setCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrix(const class mrpt::math::CMatrixFixed<double, 3, 3> &) --> void
- setCovMatrixAndMean(...)
- setCovMatrixAndMean(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t, new_mean: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_1UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrixAndMean(const class mrpt::math::CMatrixFixed<double, 3, 3> &, const class mrpt::math::CMatrixFixed<double, 3, 1> &) --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setQuantiles(float) --> void
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CEllipsoidInverseDepth2D(CGeneralizedEllipsoidTemplate_2_t) |
|
An especial "ellipsoid" in 3D computed as the uncertainty iso-surfaces of a
(inv_range,yaw) variable.
The parameter space of this ellipsoid comprises these variables (in this
order):
- inv_range: The inverse distance from the sensor to the feature.
- yaw: Angle for the rotation around +Z ("azimuth").
This parameterization is a 2D version of that presented in the paper:
- Civera, J. and Davison, A.J. and Montiel, J., "Inverse depth
parametrization for monocular SLAM", T-RO, 2008.
This class expects you to provide a mean vector of length 4 and a 4x4
covariance matrix, set with
Please read the documentation of
CGeneralizedEllipsoidTemplate::setQuantiles() for learning
the mathematical details about setting the desired confidence interval.
![mrpt::opengl::CEllipsoidInverseDepth2D](preview_CEllipsoidInverseDepth2D.png) |
|
- Method resolution order:
- CEllipsoidInverseDepth2D
- CGeneralizedEllipsoidTemplate_2_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoidInverseDepth2D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D, : mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D
C++: mrpt::opengl::CEllipsoidInverseDepth2D::operator=(const class mrpt::opengl::CEllipsoidInverseDepth2D &) --> class mrpt::opengl::CEllipsoidInverseDepth2D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoidInverseDepth2D::clone() const --> class mrpt::rtti::CObject *
- getUnderflowMaxRange(...)
- getUnderflowMaxRange(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D) -> float
C++: mrpt::opengl::CEllipsoidInverseDepth2D::getUnderflowMaxRange() const --> double
- setUnderflowMaxRange(...)
- setUnderflowMaxRange(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth2D, maxRange: float) -> None
The maximum range to be used as a correction when a point of the
ellipsoid falls in the negative ranges (default: 1e6)
C++: mrpt::opengl::CEllipsoidInverseDepth2D::setUnderflowMaxRange(const double) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoidInverseDepth2D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoidInverseDepth2D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CGeneralizedEllipsoidTemplate_2_t:
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_2UL_2UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 2, 2>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::renderUpdateBuffers() const --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setQuantiles(float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CEllipsoidInverseDepth3D(CGeneralizedEllipsoidTemplate_3_t, CRenderizable) |
|
An especial "ellipsoid" in 3D computed as the uncertainty iso-surfaces of a
(inv_range,yaw,pitch) variable.
The parameter space of this ellipsoid comprises these variables (in this
order):
- inv_range: The inverse distance from the sensor to the feature.
- yaw: Angle for the rotation around +Z ("azimuth").
- pitch: Angle for the rotation around +Y ("elevation"). Positive means
pointing below the XY plane.
This parameterization is based on the paper:
- Civera, J. and Davison, A.J. and Montiel, J., "Inverse depth
parametrization for monocular SLAM", T-RO, 2008.
This class expects you to provide a mean vector of length 3 and a 3x3
covariance matrix, set with
Please read the documentation of
CGeneralizedEllipsoidTemplate::setQuantiles() for learning
the mathematical details about setting the desired confidence interval.
![mrpt::opengl::CEllipsoidInverseDepth3D](preview_CEllipsoidInverseDepth3D.png) |
|
- Method resolution order:
- CEllipsoidInverseDepth3D
- CGeneralizedEllipsoidTemplate_3_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoidInverseDepth3D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D, : mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D
C++: mrpt::opengl::CEllipsoidInverseDepth3D::operator=(const class mrpt::opengl::CEllipsoidInverseDepth3D &) --> class mrpt::opengl::CEllipsoidInverseDepth3D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoidInverseDepth3D::clone() const --> class mrpt::rtti::CObject *
- getUnderflowMaxRange(...)
- getUnderflowMaxRange(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D) -> float
C++: mrpt::opengl::CEllipsoidInverseDepth3D::getUnderflowMaxRange() const --> float
- setUnderflowMaxRange(...)
- setUnderflowMaxRange(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidInverseDepth3D, maxRange: float) -> None
The maximum range to be used as a correction when a point of the
ellipsoid falls in the negative ranges (default: 1e6)
C++: mrpt::opengl::CEllipsoidInverseDepth3D::setUnderflowMaxRange(const float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoidInverseDepth3D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoidInverseDepth3D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CGeneralizedEllipsoidTemplate_3_t:
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 3, 3>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::renderUpdateBuffers() const --> void
- setCovMatrix(...)
- setCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrix(const class mrpt::math::CMatrixFixed<double, 3, 3> &) --> void
- setCovMatrixAndMean(...)
- setCovMatrixAndMean(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t, new_mean: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_1UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrixAndMean(const class mrpt::math::CMatrixFixed<double, 3, 3> &, const class mrpt::math::CMatrixFixed<double, 3, 1> &) --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setQuantiles(float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CEllipsoidRangeBearing2D(CGeneralizedEllipsoidTemplate_2_t, CRenderizable) |
|
An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a
(range,bearing) variable.
The parameter space of this ellipsoid comprises these variables (in this
order):
- range: Distance from sensor to feature.
- bearing: Angle from +X to the line that goes from the sensor towards the
feature.
This class expects you to provide a mean vector of length 2 and a 2x2
covariance matrix, set with
Please read the documentation of
CGeneralizedEllipsoidTemplate::setQuantiles() for learning
the mathematical details about setting the desired confidence interval.
![mrpt::opengl::CEllipsoidRangeBearing2D](preview_CEllipsoidRangeBearing2D.png) |
|
- Method resolution order:
- CEllipsoidRangeBearing2D
- CGeneralizedEllipsoidTemplate_2_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoidRangeBearing2D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D, arg0: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D, : mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D) -> mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D
C++: mrpt::opengl::CEllipsoidRangeBearing2D::operator=(const class mrpt::opengl::CEllipsoidRangeBearing2D &) --> class mrpt::opengl::CEllipsoidRangeBearing2D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CEllipsoidRangeBearing2D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoidRangeBearing2D::clone() const --> class mrpt::rtti::CObject *
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CEllipsoidRangeBearing2D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CEllipsoidRangeBearing2D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CGeneralizedEllipsoidTemplate_2_t:
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_2UL_2UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 2, 2>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::renderUpdateBuffers() const --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setQuantiles(float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CFBORender(pybind11_builtins.pybind11_object) |
|
Render 3D scenes off-screen directly to RGB and/or RGB+D images.
Main methods:
- render_RGB(): Renders a scene into an RGB image.
- render_RGBD(): Renders a scene into an RGB and depth images.
To define a background color, define it in your
`scene.getViewport()->setCustomBackgroundColor()`. You can add overlaid text
messages, see base class CTextMessageCapable
The SE(3) pose from which the scene is rendered is defined by the scene
`"main"` viewport camera pose.
See for code examples.
, |
|
- Method resolution order:
- CFBORender
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CFBORender, p: mrpt::opengl::CFBORender::Parameters) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CFBORender) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CFBORender, width: int) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CFBORender, width: int, height: int) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CFBORender, arg0: mrpt.pymrpt.mrpt.opengl.CFBORender) -> None
- getCamera(...)
- getCamera(self: mrpt.pymrpt.mrpt.opengl.CFBORender, scene: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.opengl.CCamera
Get a reference to the scene camera to be used when rendering the scene
through this particular instance of CFBORender.
C++: mrpt::opengl::CFBORender::getCamera(const class mrpt::opengl::Scene &) --> class mrpt::opengl::CCamera &
- render_RGB(...)
- render_RGB(self: mrpt.pymrpt.mrpt.opengl.CFBORender, scene: mrpt.pymrpt.mrpt.opengl.Scene, outRGB: mrpt.pymrpt.mrpt.img.CImage) -> None
Render the scene and get the rendered RGB image. Resizes the image
buffer if necessary to the configured render resolution.
render_RGBD()
C++: mrpt::opengl::CFBORender::render_RGB(const class mrpt::opengl::Scene &, class mrpt::img::CImage &) --> void
- render_RGBD(...)
- render_RGBD(self: mrpt.pymrpt.mrpt.opengl.CFBORender, scene: mrpt.pymrpt.mrpt.opengl.Scene, outRGB: mrpt.pymrpt.mrpt.img.CImage, outDepth: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Render the scene and get the rendered RGB and depth images.
Resizes the provided buffers if necessary to the configured render
resolution.
The output depth image is in linear depth distance units (e.g. "meters").
Note that values is depth, not range, that is, it's the "+z" coordinate
of a point as seen from the camera, with +Z pointing forward in the view
direction (the common convention in computer vision).
Pixels without any observed object in the valid viewport {clipMin,
clipMax} range will be returned with a range of `0.0`.
render_RGB(), Parameters::raw_depth
C++: mrpt::opengl::CFBORender::render_RGBD(const class mrpt::opengl::Scene &, class mrpt::img::CImage &, class mrpt::math::CMatrixDynamic<float> &) --> void
- render_depth(...)
- render_depth(self: mrpt.pymrpt.mrpt.opengl.CFBORender, scene: mrpt.pymrpt.mrpt.opengl.Scene, outDepth: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Like render_RGBD(), but only renders the depth image.
render_RGBD()
C++: mrpt::opengl::CFBORender::render_depth(const class mrpt::opengl::Scene &, class mrpt::math::CMatrixDynamic<float> &) --> void
- setCamera(...)
- setCamera(self: mrpt.pymrpt.mrpt.opengl.CFBORender, scene: mrpt.pymrpt.mrpt.opengl.Scene, camera: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
Change the scene camera to be used when rendering the scene through this
particular instance of CFBORender.
C++: mrpt::opengl::CFBORender::setCamera(const class mrpt::opengl::Scene &, const class mrpt::opengl::CCamera &) --> void
Data and other attributes defined here:
- Parameters = <class 'mrpt.pymrpt.mrpt.opengl.CFBORender.Parameters'>
- Parameters for CFBORender constructor
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CFrustum(CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
|
A solid or wireframe frustum in 3D (a rectangular truncated pyramid), with
arbitrary (possibly assymetric) field-of-view angles.
You can switch whether to show only the lines, the surface of the frustum,
or both.
By default only the lines are drawn.
The color of the object (via CRenderizable::setColor()) affects the color
of lines.
To set the color of planes use
As usual in MRPT, the +X axis is assumed to by the main direction, in this
case of the pyramid axis.
The horizontal and vertical FOVs can be set directly with
and if
they are symmetric, or with and
otherwise.
All FOV angles are positive numbers. FOVs must be below 90deg on each side
(below 180deg in total).
If you try to set FOVs to larger values they'll truncated to 89.9deg.
![mrpt::opengl::CFrustum](preview_CFrustum.png)
opengl::Scene,opengl::CRenderizable |
|
- Method resolution order:
- CFrustum
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CFrustum::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CFrustum, near_distance: float, far_distance: float, horz_FOV_degrees: float, vert_FOV_degrees: float, lineWidth: float, draw_lines: bool, draw_planes: bool) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CFrustum, arg0: mrpt.pymrpt.mrpt.img.TCamera) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CFrustum, intrinsics: mrpt.pymrpt.mrpt.img.TCamera, focalDistScale: float) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CFrustum, arg0: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CFrustum, arg0: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CFrustum, : mrpt.pymrpt.mrpt.opengl.CFrustum) -> mrpt.pymrpt.mrpt.opengl.CFrustum
C++: mrpt::opengl::CFrustum::operator=(const class mrpt::opengl::CFrustum &) --> class mrpt::opengl::CFrustum &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CFrustum::clone() const --> class mrpt::rtti::CObject *
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
C++: mrpt::opengl::CFrustum::freeOpenGLResources() --> void
- getFarPlaneDistance(...)
- getFarPlaneDistance(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getFarPlaneDistance() const --> float
- getHorzFOV(...)
- getHorzFOV(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getHorzFOV() const --> float
- getHorzFOVLeft(...)
- getHorzFOVLeft(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getHorzFOVLeft() const --> float
- getHorzFOVRight(...)
- getHorzFOVRight(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getHorzFOVRight() const --> float
- getNearPlaneDistance(...)
- getNearPlaneDistance(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getNearPlaneDistance() const --> float
- getPlaneColor(...)
- getPlaneColor(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> mrpt.pymrpt.mrpt.img.TColor
C++: mrpt::opengl::CFrustum::getPlaneColor() const --> const struct mrpt::img::TColor &
- getVertFOV(...)
- getVertFOV(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getVertFOV() const --> float
- getVertFOVDown(...)
- getVertFOVDown(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getVertFOVDown() const --> float
- getVertFOVUp(...)
- getVertFOVUp(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> float
C++: mrpt::opengl::CFrustum::getVertFOVUp() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CFrustum::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
C++: mrpt::opengl::CFrustum::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
C++: mrpt::opengl::CFrustum::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CFrustum) -> None
C++: mrpt::opengl::CFrustum::renderUpdateBuffers() const --> void
- setHorzFOV(...)
- setHorzFOV(self: mrpt.pymrpt.mrpt.opengl.CFrustum, fov_horz_degrees: float) -> None
Changes horizontal FOV (symmetric)
C++: mrpt::opengl::CFrustum::setHorzFOV(const float) --> void
- setHorzFOVAsymmetric(...)
- setHorzFOVAsymmetric(self: mrpt.pymrpt.mrpt.opengl.CFrustum, fov_horz_left_degrees: float, fov_horz_right_degrees: float) -> None
Changes horizontal FOV (asymmetric)
C++: mrpt::opengl::CFrustum::setHorzFOVAsymmetric(const float, const float) --> void
- setNearFarPlanes(...)
- setNearFarPlanes(self: mrpt.pymrpt.mrpt.opengl.CFrustum, near_distance: float, far_distance: float) -> None
Changes distance of near & far planes
C++: mrpt::opengl::CFrustum::setNearFarPlanes(const float, const float) --> void
- setPlaneColor(...)
- setPlaneColor(self: mrpt.pymrpt.mrpt.opengl.CFrustum, c: mrpt.pymrpt.mrpt.img.TColor) -> None
Changes the color of the planes; to change color of lines, use
CRenderizable base methods.
C++: mrpt::opengl::CFrustum::setPlaneColor(const struct mrpt::img::TColor &) --> void
- setVertFOV(...)
- setVertFOV(self: mrpt.pymrpt.mrpt.opengl.CFrustum, fov_vert_degrees: float) -> None
Changes vertical FOV (symmetric)
C++: mrpt::opengl::CFrustum::setVertFOV(const float) --> void
- setVertFOVAsymmetric(...)
- setVertFOVAsymmetric(self: mrpt.pymrpt.mrpt.opengl.CFrustum, fov_vert_down_degrees: float, fov_vert_up_degrees: float) -> None
Changes vertical FOV (asymmetric)
C++: mrpt::opengl::CFrustum::setVertFOVAsymmetric(const float, const float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CFrustum, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CFrustum::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CFrustum::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CFrustum::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CGeneralizedEllipsoidTemplate_2_t(CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
| |
- Method resolution order:
- CGeneralizedEllipsoidTemplate_2_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, : mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::operator=(const class mrpt::opengl::CGeneralizedEllipsoidTemplate<2> &) --> class mrpt::opengl::CGeneralizedEllipsoidTemplate<2> &
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_2UL_2UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 2, 2>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::renderUpdateBuffers() const --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::setQuantiles(float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_2_t, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<2>::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Static methods inherited from CRenderizableShaderTriangles:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderTriangles::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CGeneralizedEllipsoidTemplate_3_t(CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
| |
- Method resolution order:
- CGeneralizedEllipsoidTemplate_3_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, : mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::operator=(const class mrpt::opengl::CGeneralizedEllipsoidTemplate<3> &) --> class mrpt::opengl::CGeneralizedEllipsoidTemplate<3> &
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 3, 3>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::renderUpdateBuffers() const --> void
- setCovMatrix(...)
- setCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrix(const class mrpt::math::CMatrixFixed<double, 3, 3> &) --> void
- setCovMatrixAndMean(...)
- setCovMatrixAndMean(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t, new_mean: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_1UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrixAndMean(const class mrpt::math::CMatrixFixed<double, 3, 3> &, const class mrpt::math::CMatrixFixed<double, 3, 1> &) --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setQuantiles(float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Static methods inherited from CRenderizableShaderTriangles:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderTriangles::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CGridPlaneXY(CRenderizableShaderWireFrame) |
|
A grid of lines over the XY plane.
![mrpt::opengl::CGridPlaneXY](preview_CGridPlaneXY.png)
opengl::Scene |
|
- Method resolution order:
- CGridPlaneXY
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CGridPlaneXY::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) -> None
doc
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
doc
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, xMin: float, xMax: float, yMin: float, yMax: float, z: float, frequency: float, lineWidth: float, antiAliasing: bool) -> None
10. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> None
11. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, arg0: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, : mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> mrpt.pymrpt.mrpt.opengl.CGridPlaneXY
C++: mrpt::opengl::CGridPlaneXY::operator=(const class mrpt::opengl::CGridPlaneXY &) --> class mrpt::opengl::CGridPlaneXY &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CGridPlaneXY::clone() const --> class mrpt::rtti::CObject *
- getGridFrequency(...)
- getGridFrequency(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> float
C++: mrpt::opengl::CGridPlaneXY::getGridFrequency() const --> float
- getPlaneLimits(...)
- getPlaneLimits(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, xmin: float, xmax: float, ymin: float, ymax: float) -> None
C++: mrpt::opengl::CGridPlaneXY::getPlaneLimits(float &, float &, float &, float &) const --> void
- getPlaneZcoord(...)
- getPlaneZcoord(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> float
C++: mrpt::opengl::CGridPlaneXY::getPlaneZcoord() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CGridPlaneXY::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY) -> None
C++: mrpt::opengl::CGridPlaneXY::onUpdateBuffers_Wireframe() --> void
- setGridFrequency(...)
- setGridFrequency(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, freq: float) -> None
C++: mrpt::opengl::CGridPlaneXY::setGridFrequency(float) --> void
- setPlaneLimits(...)
- setPlaneLimits(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, xmin: float, xmax: float, ymin: float, ymax: float) -> None
C++: mrpt::opengl::CGridPlaneXY::setPlaneLimits(float, float, float, float) --> void
- setPlaneZcoord(...)
- setPlaneZcoord(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXY, z: float) -> None
C++: mrpt::opengl::CGridPlaneXY::setPlaneZcoord(float) --> void
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create(args: float, args: float, args: float, args: float, args: float, args: float) -> mrpt.pymrpt.mrpt.opengl.CGridPlaneXY
C++: mrpt::opengl::CGridPlaneXY::Create(double &, double &, double &, double &, double &, const double &) --> class std::shared_ptr<class mrpt::opengl::CGridPlaneXY>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CGridPlaneXY::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CGridPlaneXY::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::freeOpenGLResources() --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::renderUpdateBuffers() const --> void
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CGridPlaneXZ(CRenderizableShaderWireFrame) |
|
A grid of lines over the XZ plane.
![mrpt::opengl::CGridPlaneXZ](preview_CGridPlaneXZ.png)
opengl::Scene |
|
- Method resolution order:
- CGridPlaneXZ
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CGridPlaneXZ::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) -> None
doc
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
doc
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, xMin: float, xMax: float, zMin: float, zMax: float, y: float, frequency: float, lineWidth: float, antiAliasing: bool) -> None
10. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> None
11. __init__(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, arg0: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, : mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ
C++: mrpt::opengl::CGridPlaneXZ::operator=(const class mrpt::opengl::CGridPlaneXZ &) --> class mrpt::opengl::CGridPlaneXZ &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CGridPlaneXZ::clone() const --> class mrpt::rtti::CObject *
- getGridFrequency(...)
- getGridFrequency(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> float
C++: mrpt::opengl::CGridPlaneXZ::getGridFrequency() const --> float
- getPlaneLimits(...)
- getPlaneLimits(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, xmin: float, xmax: float, zmin: float, zmax: float) -> None
C++: mrpt::opengl::CGridPlaneXZ::getPlaneLimits(float &, float &, float &, float &) const --> void
- getPlaneYcoord(...)
- getPlaneYcoord(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> float
C++: mrpt::opengl::CGridPlaneXZ::getPlaneYcoord() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CGridPlaneXZ::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ) -> None
C++: mrpt::opengl::CGridPlaneXZ::onUpdateBuffers_Wireframe() --> void
- setGridFrequency(...)
- setGridFrequency(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, freq: float) -> None
C++: mrpt::opengl::CGridPlaneXZ::setGridFrequency(float) --> void
- setPlaneLimits(...)
- setPlaneLimits(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, xmin: float, xmax: float, zmin: float, zmax: float) -> None
C++: mrpt::opengl::CGridPlaneXZ::setPlaneLimits(float, float, float, float) --> void
- setPlaneYcoord(...)
- setPlaneYcoord(self: mrpt.pymrpt.mrpt.opengl.CGridPlaneXZ, y: float) -> None
C++: mrpt::opengl::CGridPlaneXZ::setPlaneYcoord(float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CGridPlaneXZ::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CGridPlaneXZ::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::freeOpenGLResources() --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::renderUpdateBuffers() const --> void
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CMesh(CRenderizableShaderTexturedTriangles, CRenderizableShaderWireFrame) |
|
A planar (XY) grid where each cell has an associated height and, optionally,
a texture map. A typical usage example would be an elevation map or a 3D
model of a terrain.
The height of each cell/pixel is provided via an elevation `Z` matrix,
where the z coordinate of the grid cell (x,y) is given by `Z(x,y)`
(not `Z(y,x)`!!), that is:
- Z column count = number of cells in direction "+y"
- Z row count = number of cells in direction "+x"
Since MRPT 2.7.0, the texture can be wrapped over the mesh using
setMeshTextureExtension().
![mrpt::opengl::CMesh](preview_CMesh.png)
opengl::Scene |
|
- Method resolution order:
- CMesh
- CRenderizableShaderTexturedTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CMesh::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, arg0: bool) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, arg0: bool, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, arg0: bool, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, arg0: bool, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, enableTransparency: bool, xMin: float, xMax: float, yMin: float, yMax: float) -> None
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, arg0: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh, arg0: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
- adjustGridToImageAR(...)
- adjustGridToImageAR(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
Adjust grid limits according to the image aspect ratio, maintaining the
X limits and resizing in the Y direction.
C++: mrpt::opengl::CMesh::adjustGridToImageAR() --> void
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CMesh, : mrpt.pymrpt.mrpt.opengl.CMesh) -> mrpt.pymrpt.mrpt.opengl.CMesh
C++: mrpt::opengl::CMesh::operator=(const class mrpt::opengl::CMesh &) --> class mrpt::opengl::CMesh &
- assignImage(...)
- assignImage(self: mrpt.pymrpt.mrpt.opengl.CMesh, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture image.
C++: mrpt::opengl::CMesh::assignImage(const class mrpt::img::CImage &) --> void
- assignImageAndZ(...)
- assignImageAndZ(self: mrpt.pymrpt.mrpt.opengl.CMesh, img: mrpt.pymrpt.mrpt.img.CImage, in_Z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Assigns a texture image and Z simultaneously, and disable transparency.
C++: mrpt::opengl::CMesh::assignImageAndZ(const class mrpt::img::CImage &, const class mrpt::math::CMatrixDynamic<float> &) --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CMesh::clone() const --> class mrpt::rtti::CObject *
- enableColorFromZ(...)
- enableColorFromZ(*args, **kwargs)
Overloaded function.
1. enableColorFromZ(self: mrpt.pymrpt.mrpt.opengl.CMesh, v: bool) -> None
2. enableColorFromZ(self: mrpt.pymrpt.mrpt.opengl.CMesh, v: bool, colorMap: mrpt.pymrpt.mrpt.img.TColormap) -> None
C++: mrpt::opengl::CMesh::enableColorFromZ(bool, enum mrpt::img::TColormap) --> void
- enableTransparency(...)
- enableTransparency(self: mrpt.pymrpt.mrpt.opengl.CMesh, v: bool) -> None
C++: mrpt::opengl::CMesh::enableTransparency(bool) --> void
- enableWireFrame(...)
- enableWireFrame(self: mrpt.pymrpt.mrpt.opengl.CMesh, v: bool) -> None
C++: mrpt::opengl::CMesh::enableWireFrame(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
C++: mrpt::opengl::CMesh::freeOpenGLResources() --> void
- getGridLimits(...)
- getGridLimits(self: mrpt.pymrpt.mrpt.opengl.CMesh, xMin: float, xMax: float, yMin: float, yMax: float) -> None
C++: mrpt::opengl::CMesh::getGridLimits(float &, float &, float &, float &) const --> void
- getMask(...)
- getMask(self: mrpt.pymrpt.mrpt.opengl.CMesh, out: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Returns a reference to the internal mask matrix, allowing changing it
efficiently
C++: mrpt::opengl::CMesh::getMask(class mrpt::math::CMatrixDynamic<float> &) const --> void
- getMeshTextureExtension(...)
- getMeshTextureExtension(self: mrpt.pymrpt.mrpt.opengl.CMesh, textureSize_x: float, textureSize_y: float) -> None
C++: mrpt::opengl::CMesh::getMeshTextureExtension(float &, float &) const --> void
- getXBounds(...)
- getXBounds(self: mrpt.pymrpt.mrpt.opengl.CMesh, min: float, max: float) -> None
C++: mrpt::opengl::CMesh::getXBounds(float &, float &) const --> void
- getYBounds(...)
- getYBounds(self: mrpt.pymrpt.mrpt.opengl.CMesh, min: float, max: float) -> None
C++: mrpt::opengl::CMesh::getYBounds(float &, float &) const --> void
- getZ(...)
- getZ(self: mrpt.pymrpt.mrpt.opengl.CMesh, out: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Returns a reference to the internal Z matrix, allowing changing it
efficiently
C++: mrpt::opengl::CMesh::getZ(class mrpt::math::CMatrixDynamic<float> &) const --> void
- getxMax(...)
- getxMax(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> float
C++: mrpt::opengl::CMesh::getxMax() const --> float
- getxMin(...)
- getxMin(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> float
C++: mrpt::opengl::CMesh::getxMin() const --> float
- getyMax(...)
- getyMax(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> float
C++: mrpt::opengl::CMesh::getyMax() const --> float
- getyMin(...)
- getyMin(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> float
C++: mrpt::opengl::CMesh::getyMin() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CMesh::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_TexturedTriangles(...)
- onUpdateBuffers_TexturedTriangles(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
C++: mrpt::opengl::CMesh::onUpdateBuffers_TexturedTriangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
C++: mrpt::opengl::CMesh::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CMesh) -> None
C++: mrpt::opengl::CMesh::renderUpdateBuffers() const --> void
- setMask(...)
- setMask(self: mrpt.pymrpt.mrpt.opengl.CMesh, in_mask: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
This method sets the boolean mask of valid heights for each position
(cell) in the mesh grid
C++: mrpt::opengl::CMesh::setMask(const class mrpt::math::CMatrixDynamic<float> &) --> void
- setMeshTextureExtension(...)
- setMeshTextureExtension(self: mrpt.pymrpt.mrpt.opengl.CMesh, textureSize_x: float, textureSize_y: float) -> None
Sets the texture physical size (in "meters) using to wrap it over the
mesh extension.
The default (0) means texture size is equal to whole grid extension.
C++: mrpt::opengl::CMesh::setMeshTextureExtension(float, float) --> void
- setXBounds(...)
- setXBounds(self: mrpt.pymrpt.mrpt.opengl.CMesh, min: float, max: float) -> None
C++: mrpt::opengl::CMesh::setXBounds(const float, const float) --> void
- setYBounds(...)
- setYBounds(self: mrpt.pymrpt.mrpt.opengl.CMesh, min: float, max: float) -> None
C++: mrpt::opengl::CMesh::setYBounds(const float, const float) --> void
- setZ(...)
- setZ(self: mrpt.pymrpt.mrpt.opengl.CMesh, in_Z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
This method sets the matrix of heights for each position (cell) in the
mesh grid
C++: mrpt::opengl::CMesh::setZ(const class mrpt::math::CMatrixDynamic<float> &) --> void
- setxMax(...)
- setxMax(self: mrpt.pymrpt.mrpt.opengl.CMesh, nxm: float) -> None
C++: mrpt::opengl::CMesh::setxMax(const float) --> void
- setxMin(...)
- setxMin(self: mrpt.pymrpt.mrpt.opengl.CMesh, nxm: float) -> None
C++: mrpt::opengl::CMesh::setxMin(const float) --> void
- setyMax(...)
- setyMax(self: mrpt.pymrpt.mrpt.opengl.CMesh, nym: float) -> None
C++: mrpt::opengl::CMesh::setyMax(const float) --> void
- setyMin(...)
- setyMin(self: mrpt.pymrpt.mrpt.opengl.CMesh, nym: float) -> None
C++: mrpt::opengl::CMesh::setyMin(const float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CMesh, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Trace ray
C++: mrpt::opengl::CMesh::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CMesh::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CMesh::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Data and other attributes defined here:
- TTriangleVertexIndices = <class 'mrpt.pymrpt.mrpt.opengl.CMesh.TTriangleVertexIndices'>
Methods inherited from CRenderizableShaderTexturedTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace()
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableLight(bool) --> void
- enableTextureLinearInterpolation(...)
- enableTextureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
Enable linear interpolation of textures (default=false, use nearest
pixel)
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureLinearInterpolation(bool) --> void
- enableTextureMipMap(...)
- enableTextureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureMipMap(bool) --> void
- getTextureAlphaImage(...)
- getTextureAlphaImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureAlphaImage() const --> const class mrpt::img::CImage &
- getTextureImage(...)
- getTextureImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureImage() const --> const class mrpt::img::CImage &
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
VERY IMPORTANT: If you use a multi-thread application, you MUST call
this from the same thread that will later destruct the object in order to
the OpenGL texture memory to be correctly deleted.
Calling this method more than once has no effects. If you use one
thread, this method will be automatically called when rendering, so there
is no need to explicitly call it.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::initializeTextures() const --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::isLightEnabled() const --> bool
- textureImageHasBeenAssigned(...)
- textureImageHasBeenAssigned(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureImageHasBeenAssigned() const --> bool
- textureLinearInterpolation(...)
- textureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureLinearInterpolation() const --> bool
- textureMipMap(...)
- textureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureMipMap() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CMesh3D(CRenderizableShaderTriangles, CRenderizableShaderWireFrame, CRenderizableShaderPoints) |
|
A 3D mesh composed of triangles and/or quads.
A typical usage example would be a 3D model of an object.
![mrpt::opengl::CMesh3D](preview_CMesh3D.png)
opengl::Scene,opengl::CMesh,opengl::CAssimpModel |
|
- Method resolution order:
- CMesh3D
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CMesh3D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, arg0: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, arg0: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, : mrpt.pymrpt.mrpt.opengl.CMesh3D) -> mrpt.pymrpt.mrpt.opengl.CMesh3D
C++: mrpt::opengl::CMesh3D::operator=(const class mrpt::opengl::CMesh3D &) --> class mrpt::opengl::CMesh3D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CMesh3D::clone() const --> class mrpt::rtti::CObject *
- enableFaceNormals(...)
- enableFaceNormals(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, v: bool) -> None
C++: mrpt::opengl::CMesh3D::enableFaceNormals(bool) --> void
- enableShowEdges(...)
- enableShowEdges(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, v: bool) -> None
C++: mrpt::opengl::CMesh3D::enableShowEdges(bool) --> void
- enableShowFaces(...)
- enableShowFaces(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, v: bool) -> None
C++: mrpt::opengl::CMesh3D::enableShowFaces(bool) --> void
- enableShowVertices(...)
- enableShowVertices(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, v: bool) -> None
C++: mrpt::opengl::CMesh3D::enableShowVertices(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
C++: mrpt::opengl::CMesh3D::freeOpenGLResources() --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CMesh3D::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- loadMesh(...)
- loadMesh(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, num_verts: int, num_faces: int, verts_per_face: int, face_verts: int, vert_coords: float) -> None
Load a 3D mesh. The arguments indicate:
- num_verts: Number of vertices of the mesh
- num_faces: Number of faces of the mesh
- verts_per_face: An array (pointer) with the number of vertices of each
face. The elements must be set either to 3 (triangle) or 4 (quad).
- face_verts: An array (pointer) with the vertices of each face. The
vertices of each face must be consecutive in this array.
- vert_coords: An array (pointer) with the coordinates of each vertex.
The xyz coordinates of each vertex must be consecutive in this array.
C++: mrpt::opengl::CMesh3D::loadMesh(unsigned int, unsigned int, int *, int *, float *) --> void
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
C++: mrpt::opengl::CMesh3D::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
C++: mrpt::opengl::CMesh3D::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
C++: mrpt::opengl::CMesh3D::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CMesh3D) -> None
C++: mrpt::opengl::CMesh3D::renderUpdateBuffers() const --> void
- setEdgeColor(...)
- setEdgeColor(*args, **kwargs)
Overloaded function.
1. setEdgeColor(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, r: float, g: float, b: float) -> None
2. setEdgeColor(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, r: float, g: float, b: float, a: float) -> None
C++: mrpt::opengl::CMesh3D::setEdgeColor(float, float, float, float) --> void
- setFaceColor(...)
- setFaceColor(*args, **kwargs)
Overloaded function.
1. setFaceColor(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, r: float, g: float, b: float) -> None
2. setFaceColor(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, r: float, g: float, b: float, a: float) -> None
C++: mrpt::opengl::CMesh3D::setFaceColor(float, float, float, float) --> void
- setVertColor(...)
- setVertColor(*args, **kwargs)
Overloaded function.
1. setVertColor(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, r: float, g: float, b: float) -> None
2. setVertColor(self: mrpt.pymrpt.mrpt.opengl.CMesh3D, r: float, g: float, b: float, a: float) -> None
C++: mrpt::opengl::CMesh3D::setVertColor(float, float, float, float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CMesh3D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CMesh3D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CMeshFast(CRenderizableShaderPoints) |
|
A planar (XY) grid where each cell has an associated height and, optionally,
a texture map.
To make it faster to render, instead of drawing lines and triangles it draws
a point at each gridcell.
A typical usage example would be an elevation map or a 3D model of a
terrain.
![mrpt::opengl::CMeshFast](preview_CMeshFast.png)
opengl::Scene |
|
- Method resolution order:
- CMeshFast
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CMeshFast::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, arg0: bool) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, arg0: bool, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, arg0: bool, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, arg0: bool, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, enableTransparency: bool, xMin_p: float, xMax_p: float, yMin_p: float, yMax_p: float) -> None
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, arg0: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> None
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, arg0: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> None
- adjustGridToImageAR(...)
- adjustGridToImageAR(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> None
Adjust grid limits according to the image aspect ratio, maintaining the
X limits and resizing in the Y direction.
C++: mrpt::opengl::CMeshFast::adjustGridToImageAR() --> void
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, : mrpt.pymrpt.mrpt.opengl.CMeshFast) -> mrpt.pymrpt.mrpt.opengl.CMeshFast
C++: mrpt::opengl::CMeshFast::operator=(const class mrpt::opengl::CMeshFast &) --> class mrpt::opengl::CMeshFast &
- assignImage(...)
- assignImage(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture image, and disable transparency.
C++: mrpt::opengl::CMeshFast::assignImage(const class mrpt::img::CImage &) --> void
- assignImageAndZ(...)
- assignImageAndZ(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, img: mrpt.pymrpt.mrpt.img.CImage, in_Z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Assigns a texture image and Z simultaneously, and disable transparency.
C++: mrpt::opengl::CMeshFast::assignImageAndZ(const class mrpt::img::CImage &, const class mrpt::math::CMatrixDynamic<float> &) --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CMeshFast::clone() const --> class mrpt::rtti::CObject *
- enableColorFromZ(...)
- enableColorFromZ(*args, **kwargs)
Overloaded function.
1. enableColorFromZ(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, v: bool) -> None
2. enableColorFromZ(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, v: bool, colorMap: mrpt.pymrpt.mrpt.img.TColormap) -> None
C++: mrpt::opengl::CMeshFast::enableColorFromZ(bool, enum mrpt::img::TColormap) --> void
- enableTransparency(...)
- enableTransparency(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, v: bool) -> None
C++: mrpt::opengl::CMeshFast::enableTransparency(bool) --> void
- getGridLimits(...)
- getGridLimits(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, xmin: float, xmax: float, ymin: float, ymax: float) -> None
C++: mrpt::opengl::CMeshFast::getGridLimits(float &, float &, float &, float &) const --> void
- getXBounds(...)
- getXBounds(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, min: float, max: float) -> None
C++: mrpt::opengl::CMeshFast::getXBounds(float &, float &) const --> void
- getXMax(...)
- getXMax(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> float
C++: mrpt::opengl::CMeshFast::getXMax() const --> float
- getXMin(...)
- getXMin(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> float
C++: mrpt::opengl::CMeshFast::getXMin() const --> float
- getYBounds(...)
- getYBounds(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, min: float, max: float) -> None
C++: mrpt::opengl::CMeshFast::getYBounds(float &, float &) const --> void
- getYMax(...)
- getYMax(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> float
C++: mrpt::opengl::CMeshFast::getYMax() const --> float
- getYMin(...)
- getYMin(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> float
C++: mrpt::opengl::CMeshFast::getYMin() const --> float
- getZ(...)
- getZ(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, out: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Returns a reference to the internal Z matrix, allowing changing it
efficiently
C++: mrpt::opengl::CMeshFast::getZ(class mrpt::math::CMatrixDynamic<float> &) const --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CMeshFast::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CMeshFast) -> None
@{
C++: mrpt::opengl::CMeshFast::onUpdateBuffers_Points() --> void
- setGridLimits(...)
- setGridLimits(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, xmin: float, xmax: float, ymin: float, ymax: float) -> None
C++: mrpt::opengl::CMeshFast::setGridLimits(float, float, float, float) --> void
- setXBounds(...)
- setXBounds(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, min: float, max: float) -> None
C++: mrpt::opengl::CMeshFast::setXBounds(float, float) --> void
- setXMax(...)
- setXMax(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, nxm: float) -> None
C++: mrpt::opengl::CMeshFast::setXMax(float) --> void
- setXMin(...)
- setXMin(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, nxm: float) -> None
C++: mrpt::opengl::CMeshFast::setXMin(float) --> void
- setYBounds(...)
- setYBounds(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, min: float, max: float) -> None
C++: mrpt::opengl::CMeshFast::setYBounds(float, float) --> void
- setYMax(...)
- setYMax(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, nym: float) -> None
C++: mrpt::opengl::CMeshFast::setYMax(float) --> void
- setYMin(...)
- setYMin(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, nym: float) -> None
C++: mrpt::opengl::CMeshFast::setYMin(float) --> void
- setZ(...)
- setZ(self: mrpt.pymrpt.mrpt.opengl.CMeshFast, in_Z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
This method sets the matrix of heights for each position (cell) in the
mesh grid
C++: mrpt::opengl::CMeshFast::setZ(const class mrpt::math::CMatrixDynamic<float> &) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CMeshFast::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CMeshFast::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::freeOpenGLResources() --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::renderUpdateBuffers() const --> void
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class COctoMapVoxels(CRenderizableShaderTriangles, CRenderizableShaderWireFrame, CRenderizableShaderPoints) |
|
A flexible renderer of voxels, typically from a 3D octo map (see
mrpt::maps::COctoMap).
This class is sort of equivalent to octovis::OcTreeDrawer from the octomap
package, but
relying on MRPT's CRenderizable so there's no need to manually
cache the rendering of OpenGL primitives.
Normally users call mrpt::maps::COctoMap::getAs3DObject() to obtain a
generic mrpt::opengl::CSetOfObjects which insides holds an instance of
COctoMapVoxels.
You can also alternativelly call COctoMapVoxels::setFromOctoMap(), so you
can tune the display parameters, colors, etc.
As with any other mrpt::opengl class, all object coordinates refer to some
frame of reference which is relative to the object parent and can be changed
with mrpt::opengl::CRenderizable::setPose()
This class draws these separate elements to represent an OctoMap:
- A grid representation of all cubes, as simple lines (occupied/free,
leafs/nodes,... whatever). See:
- showGridLines()
- setGridLinesColor()
- setGridLinesWidth()
- push_back_GridCube()
- A number of voxel collections, drawn as cubes each having a
different color (e.g. depending on the color scheme in the original
mrpt::maps::COctoMap object).
The meanning of each collection is user-defined, but you can use the
constants VOXEL_SET_OCCUPIED, VOXEL_SET_FREESPACE for predefined meanings.
- showVoxels()
- push_back_Voxel()
Several coloring schemes can be selected with setVisualizationMode(). See
COctoMapVoxels::visualization_mode_t
![mrpt::opengl::COctoMapVoxels](preview_COctoMapVoxels.png)
opengl::Scene |
|
- Method resolution order:
- COctoMapVoxels
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::COctoMapVoxels::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, arg0: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, arg0: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
- areGridLinesVisible(...)
- areGridLinesVisible(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> bool
C++: mrpt::opengl::COctoMapVoxels::areGridLinesVisible() const --> bool
- areLightsEnabled(...)
- areLightsEnabled(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> bool
C++: mrpt::opengl::COctoMapVoxels::areLightsEnabled() const --> bool
- areVoxelsShownAsPoints(...)
- areVoxelsShownAsPoints(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> bool
C++: mrpt::opengl::COctoMapVoxels::areVoxelsShownAsPoints() const --> bool
- areVoxelsVisible(...)
- areVoxelsVisible(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, voxel_set: int) -> bool
C++: mrpt::opengl::COctoMapVoxels::areVoxelsVisible(unsigned int) const --> bool
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, : mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> mrpt.pymrpt.mrpt.opengl.COctoMapVoxels
C++: mrpt::opengl::COctoMapVoxels::operator=(const class mrpt::opengl::COctoMapVoxels &) --> class mrpt::opengl::COctoMapVoxels &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
Clears everything
C++: mrpt::opengl::COctoMapVoxels::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::COctoMapVoxels::clone() const --> class mrpt::rtti::CObject *
- enableCubeTransparency(...)
- enableCubeTransparency(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, enable: bool) -> None
By default, the alpha (transparency) component of voxel cubes is taken
into account, but transparency can be disabled with this method.
C++: mrpt::opengl::COctoMapVoxels::enableCubeTransparency(bool) --> void
- enableLights(...)
- enableLights(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, enable: bool) -> None
Can be used to enable/disable the effects of lighting in this object
C++: mrpt::opengl::COctoMapVoxels::enableLights(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
C++: mrpt::opengl::COctoMapVoxels::freeOpenGLResources() --> void
- getGridCube(...)
- getGridCube(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, idx: int) -> mrpt::opengl::COctoMapVoxels::TGridCube
C++: mrpt::opengl::COctoMapVoxels::getGridCube(size_t) const --> const struct mrpt::opengl::COctoMapVoxels::TGridCube &
- getGridCubeCount(...)
- getGridCubeCount(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> int
Returns the total count of grid cubes.
C++: mrpt::opengl::COctoMapVoxels::getGridCubeCount() const --> size_t
- getGridCubeRef(...)
- getGridCubeRef(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, idx: int) -> mrpt::opengl::COctoMapVoxels::TGridCube
C++: mrpt::opengl::COctoMapVoxels::getGridCubeRef(size_t) --> struct mrpt::opengl::COctoMapVoxels::TGridCube &
- getGridLinesColor(...)
- getGridLinesColor(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> mrpt.pymrpt.mrpt.img.TColor
C++: mrpt::opengl::COctoMapVoxels::getGridLinesColor() const --> const struct mrpt::img::TColor &
- getGridLinesWidth(...)
- getGridLinesWidth(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> float
Gets the width of grid lines
C++: mrpt::opengl::COctoMapVoxels::getGridLinesWidth() const --> float
- getVisualizationMode(...)
- getVisualizationMode(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> mrpt.pymrpt.mrpt.opengl.COctoMapVoxels.visualization_mode_t
C++: mrpt::opengl::COctoMapVoxels::getVisualizationMode() const --> enum mrpt::opengl::COctoMapVoxels::visualization_mode_t
- getVoxel(...)
- getVoxel(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, set_index: int, idx: int) -> mrpt::opengl::COctoMapVoxels::TVoxel
C++: mrpt::opengl::COctoMapVoxels::getVoxel(size_t, size_t) const --> const struct mrpt::opengl::COctoMapVoxels::TVoxel &
- getVoxelAsPointsSize(...)
- getVoxelAsPointsSize(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> float
C++: mrpt::opengl::COctoMapVoxels::getVoxelAsPointsSize() const --> float
- getVoxelCount(...)
- getVoxelCount(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, set_index: int) -> int
Returns the total count of voxels in one voxel set.
C++: mrpt::opengl::COctoMapVoxels::getVoxelCount(size_t) const --> size_t
- getVoxelRef(...)
- getVoxelRef(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, set_index: int, idx: int) -> mrpt::opengl::COctoMapVoxels::TVoxel
C++: mrpt::opengl::COctoMapVoxels::getVoxelRef(size_t, size_t) --> struct mrpt::opengl::COctoMapVoxels::TVoxel &
- getVoxelSetCount(...)
- getVoxelSetCount(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> int
Returns the number of voxel sets.
C++: mrpt::opengl::COctoMapVoxels::getVoxelSetCount() const --> size_t
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::COctoMapVoxels::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isCubeTransparencyEnabled(...)
- isCubeTransparencyEnabled(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> bool
C++: mrpt::opengl::COctoMapVoxels::isCubeTransparencyEnabled() const --> bool
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
C++: mrpt::opengl::COctoMapVoxels::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
C++: mrpt::opengl::COctoMapVoxels::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
C++: mrpt::opengl::COctoMapVoxels::onUpdateBuffers_Wireframe() --> void
- push_back_GridCube(...)
- push_back_GridCube(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, c: mrpt::opengl::COctoMapVoxels::TGridCube) -> None
C++: mrpt::opengl::COctoMapVoxels::push_back_GridCube(const struct mrpt::opengl::COctoMapVoxels::TGridCube &) --> void
- push_back_Voxel(...)
- push_back_Voxel(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, set_index: int, v: mrpt::opengl::COctoMapVoxels::TVoxel) -> None
C++: mrpt::opengl::COctoMapVoxels::push_back_Voxel(size_t, const struct mrpt::opengl::COctoMapVoxels::TVoxel &) --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
C++: mrpt::opengl::COctoMapVoxels::renderUpdateBuffers() const --> void
- reserveGridCubes(...)
- reserveGridCubes(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, nCubes: int) -> None
C++: mrpt::opengl::COctoMapVoxels::reserveGridCubes(size_t) --> void
- reserveVoxels(...)
- reserveVoxels(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, set_index: int, nVoxels: int) -> None
C++: mrpt::opengl::COctoMapVoxels::reserveVoxels(size_t, size_t) --> void
- resizeGridCubes(...)
- resizeGridCubes(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, nCubes: int) -> None
C++: mrpt::opengl::COctoMapVoxels::resizeGridCubes(size_t) --> void
- resizeVoxelSets(...)
- resizeVoxelSets(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, nVoxelSets: int) -> None
C++: mrpt::opengl::COctoMapVoxels::resizeVoxelSets(size_t) --> void
- resizeVoxels(...)
- resizeVoxels(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, set_index: int, nVoxels: int) -> None
C++: mrpt::opengl::COctoMapVoxels::resizeVoxels(size_t, size_t) --> void
- setBoundingBox(...)
- setBoundingBox(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, bb_min: mrpt::math::TPoint3D_<double>, bb_max: mrpt::math::TPoint3D_<double>) -> None
Manually changes the bounding box (normally the user doesn't need to
call this)
C++: mrpt::opengl::COctoMapVoxels::setBoundingBox(const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &) --> void
- setGridLinesColor(...)
- setGridLinesColor(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, color: mrpt.pymrpt.mrpt.img.TColor) -> None
C++: mrpt::opengl::COctoMapVoxels::setGridLinesColor(const struct mrpt::img::TColor &) --> void
- setGridLinesWidth(...)
- setGridLinesWidth(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, w: float) -> None
Sets the width of grid lines
C++: mrpt::opengl::COctoMapVoxels::setGridLinesWidth(float) --> void
- setVisualizationMode(...)
- setVisualizationMode(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, mode: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels.visualization_mode_t) -> None
Select the visualization mode. To have any effect, this method has to be
called before loading the octomap.
C++: mrpt::opengl::COctoMapVoxels::setVisualizationMode(enum mrpt::opengl::COctoMapVoxels::visualization_mode_t) --> void
- setVoxelAsPointsSize(...)
- setVoxelAsPointsSize(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, pointSize: float) -> None
Only used when showVoxelsAsPoints() is enabled.
C++: mrpt::opengl::COctoMapVoxels::setVoxelAsPointsSize(float) --> void
- showGridLines(...)
- showGridLines(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, show: bool) -> None
Shows/hides the grid lines
C++: mrpt::opengl::COctoMapVoxels::showGridLines(bool) --> void
- showVoxels(...)
- showVoxels(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, voxel_set: int, show: bool) -> None
Shows/hides the voxels (voxel_set is a 0-based index for the set of
voxels to modify, e.g. VOXEL_SET_OCCUPIED, VOXEL_SET_FREESPACE)
C++: mrpt::opengl::COctoMapVoxels::showVoxels(unsigned int, bool) --> void
- showVoxelsAsPoints(...)
- showVoxelsAsPoints(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels, enable: bool) -> None
For quick renders: render voxels as points instead of cubes.
setVoxelAsPointsSize
C++: mrpt::opengl::COctoMapVoxels::showVoxelsAsPoints(const bool) --> void
- sort_voxels_by_z(...)
- sort_voxels_by_z(self: mrpt.pymrpt.mrpt.opengl.COctoMapVoxels) -> None
C++: mrpt::opengl::COctoMapVoxels::sort_voxels_by_z() --> void
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create() -> mrpt.pymrpt.mrpt.opengl.COctoMapVoxels
C++: mrpt::opengl::COctoMapVoxels::Create() --> class std::shared_ptr<class mrpt::opengl::COctoMapVoxels>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::COctoMapVoxels::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::COctoMapVoxels::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Data and other attributes defined here:
- COLOR_FROM_HEIGHT = <visualization_mode_t.COLOR_FROM_HEIGHT: 0>
- COLOR_FROM_OCCUPANCY = <visualization_mode_t.COLOR_FROM_OCCUPANCY: 1>
- FIXED = <visualization_mode_t.FIXED: 5>
- MIXED = <visualization_mode_t.MIXED: 4>
- TGridCube = <class 'mrpt.pymrpt.mrpt.opengl.COctoMapVoxels.TGridCube'>
- The info of each grid block
- TInfoPerVoxelSet = <class 'mrpt.pymrpt.mrpt.opengl.COctoMapVoxels.TInfoPerVoxelSet'>
- TRANSPARENCY_FROM_OCCUPANCY = <visualization_mode_t.TRANSPARENCY_FROM_OCCUPANCY: 2>
- TRANS_AND_COLOR_FROM_OCCUPANCY = <visualization_mode_t.TRANS_AND_COLOR_FROM_OCCUPANCY: 3>
- TVoxel = <class 'mrpt.pymrpt.mrpt.opengl.COctoMapVoxels.TVoxel'>
- The info of each of the voxels
- visualization_mode_t = <class 'mrpt.pymrpt.mrpt.opengl.COctoMapVoxels.visualization_mode_t'>
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CPlanarLaserScan(CRenderizableShaderPoints, CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
|
This object renders a 2D laser scan by means of three elements: the points,
the line along end-points and the 2D scanned surface.
By default, all those three elements are drawn, but you can individually
switch them on/off with:
- CPlanarLaserScan::enablePoints()
- CPlanarLaserScan::enableLine()
- CPlanarLaserScan::enableSurface()
To change the final result, more methods allow further customization of the
3D object (color of each element, etc.).
The scan is passed or updated through CPlanarLaserScan::setScan()
mrpt::opengl::CPlanarLaserScan
preview_CPlanarLaserScan.png
The laser points are projected at the sensor pose as given in the
"scan" object, so this CPlanarLaserScan object should be placed at the exact
pose of the robot coordinates origin.
mrpt::opengl::CPointCloud, opengl::Scene |
|
- Method resolution order:
- CPlanarLaserScan
- CRenderizableShaderPoints
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPlanarLaserScan::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, arg0: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, arg0: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, : mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan
C++: mrpt::opengl::CPlanarLaserScan::operator=(const class mrpt::opengl::CPlanarLaserScan &) --> class mrpt::opengl::CPlanarLaserScan &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
Clear the scan
C++: mrpt::opengl::CPlanarLaserScan::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPlanarLaserScan::clone() const --> class mrpt::rtti::CObject *
- enableLine(...)
- enableLine(*args, **kwargs)
Overloaded function.
1. enableLine(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
2. enableLine(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, enable: bool) -> None
Show or hides lines along all scanned points
setLineWidth,
setLineColor
C++: mrpt::opengl::CPlanarLaserScan::enableLine(bool) --> void
- enablePoints(...)
- enablePoints(*args, **kwargs)
Overloaded function.
1. enablePoints(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
2. enablePoints(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, enable: bool) -> None
Show or hides the scanned points
sePointsWidth, setPointsColor
C++: mrpt::opengl::CPlanarLaserScan::enablePoints(bool) --> void
- enableSurface(...)
- enableSurface(*args, **kwargs)
Overloaded function.
1. enableSurface(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
2. enableSurface(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, enable: bool) -> None
Show or hides the scanned area as a 2D surface
setSurfaceColor
C++: mrpt::opengl::CPlanarLaserScan::enableSurface(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
C++: mrpt::opengl::CPlanarLaserScan::freeOpenGLResources() --> void
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> mrpt::math::TPoint3D_<float>
C++: mrpt::opengl::CPlanarLaserScan::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CPlanarLaserScan::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
C++: mrpt::opengl::CPlanarLaserScan::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
C++: mrpt::opengl::CPlanarLaserScan::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
C++: mrpt::opengl::CPlanarLaserScan::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan) -> None
C++: mrpt::opengl::CPlanarLaserScan::renderUpdateBuffers() const --> void
- setLineColor(...)
- setLineColor(*args, **kwargs)
Overloaded function.
1. setLineColor(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, R: float, G: float, B: float) -> None
2. setLineColor(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, R: float, G: float, B: float, A: float) -> None
C++: mrpt::opengl::CPlanarLaserScan::setLineColor(float, float, float, float) --> void
- setPointsColor(...)
- setPointsColor(*args, **kwargs)
Overloaded function.
1. setPointsColor(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, R: float, G: float, B: float) -> None
2. setPointsColor(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, R: float, G: float, B: float, A: float) -> None
C++: mrpt::opengl::CPlanarLaserScan::setPointsColor(float, float, float, float) --> void
- setScan(...)
- setScan(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, scan: mrpt.pymrpt.mrpt.obs.CObservation2DRangeScan) -> None
C++: mrpt::opengl::CPlanarLaserScan::setScan(const class mrpt::obs::CObservation2DRangeScan &) --> void
- setSurfaceColor(...)
- setSurfaceColor(*args, **kwargs)
Overloaded function.
1. setSurfaceColor(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, R: float, G: float, B: float) -> None
2. setSurfaceColor(self: mrpt.pymrpt.mrpt.opengl.CPlanarLaserScan, R: float, G: float, B: float, A: float) -> None
C++: mrpt::opengl::CPlanarLaserScan::setSurfaceColor(float, float, float, float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPlanarLaserScan::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPlanarLaserScan::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CPointCloud(CRenderizableShaderPoints, PLY_Importer, PLY_Exporter) |
|
A cloud of points, all with the same color or each depending on its value
along a particular coordinate axis.
This class is just an OpenGL representation of a point cloud. For operating
with maps of points, see mrpt::maps::CPointsMap and derived classes.
To load from a points-map, CPointCloud::loadFromPointsMap().
This class uses smart optimizations while rendering to efficiently draw
clouds of millions of points, using octrees.
![mrpt::opengl::CPointCloud](preview_CPointCloud.png)
opengl::CPlanarLaserScan, opengl::Scene,
opengl::CPointCloudColoured, mrpt::maps::CPointsMap |
|
- Method resolution order:
- CPointCloud
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- PLY_Importer
- PLY_Exporter
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPointCloud::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __getitem__(...)
- __getitem__(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, i: int) -> mrpt::math::TPoint3D_<float>
Read access to each individual point (checks for "i" in the valid
range only in Debug).
C++: mrpt::opengl::CPointCloud::operator[](size_t) const --> const struct mrpt::math::TPoint3D_<float> &
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, arg0: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, arg0: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
Empty the list of points.
C++: mrpt::opengl::CPointCloud::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPointCloud::clone() const --> class mrpt::rtti::CObject *
- disablePointSmooth(...)
- disablePointSmooth(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
C++: mrpt::opengl::CPointCloud::disablePointSmooth() --> void
- empty(...)
- empty(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> bool
C++: mrpt::opengl::CPointCloud::empty() const --> bool
- enableColorFromX(...)
- enableColorFromX(*args, **kwargs)
Overloaded function.
1. enableColorFromX(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
2. enableColorFromX(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, v: bool) -> None
@{
C++: mrpt::opengl::CPointCloud::enableColorFromX(bool) --> void
- enableColorFromY(...)
- enableColorFromY(*args, **kwargs)
Overloaded function.
1. enableColorFromY(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
2. enableColorFromY(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, v: bool) -> None
C++: mrpt::opengl::CPointCloud::enableColorFromY(bool) --> void
- enableColorFromZ(...)
- enableColorFromZ(*args, **kwargs)
Overloaded function.
1. enableColorFromZ(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
2. enableColorFromZ(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, v: bool) -> None
C++: mrpt::opengl::CPointCloud::enableColorFromZ(bool) --> void
- enablePointSmooth(...)
- enablePointSmooth(*args, **kwargs)
Overloaded function.
1. enablePointSmooth(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
2. enablePointSmooth(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, enable: bool) -> None
C++: mrpt::opengl::CPointCloud::enablePointSmooth(bool) --> void
- getActuallyRendered(...)
- getActuallyRendered(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> int
Get the number of elements actually rendered in the last render
event.
C++: mrpt::opengl::CPointCloud::getActuallyRendered() const --> size_t
- getPoint3Df(...)
- getPoint3Df(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, i: int) -> mrpt::math::TPoint3D_<float>
NOTE: This method is intentionally not protected by the shared_mutex,
since it's called in the inner loops of the octree, which acquires the
lock once.
C++: mrpt::opengl::CPointCloud::getPoint3Df(size_t) const --> const struct mrpt::math::TPoint3D_<float> &
- insertPoint(...)
- insertPoint(*args, **kwargs)
Overloaded function.
1. insertPoint(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, x: float, y: float, z: float) -> None
Adds a new point to the cloud
C++: mrpt::opengl::CPointCloud::insertPoint(float, float, float) --> void
2. insertPoint(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, p: mrpt::math::TPoint3D_<float>) -> None
C++: mrpt::opengl::CPointCloud::insertPoint(const struct mrpt::math::TPoint3D_<float> &) --> void
3. insertPoint(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, p: mrpt::math::TPoint3D_<double>) -> None
C++: mrpt::opengl::CPointCloud::insertPoint(const struct mrpt::math::TPoint3D_<double> &) --> void
- isPointSmoothEnabled(...)
- isPointSmoothEnabled(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> bool
C++: mrpt::opengl::CPointCloud::isPointSmoothEnabled() const --> bool
- loadFromPointsMap(...)
- loadFromPointsMap(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, themap: mrpt.pymrpt.mrpt.maps.CPointsMap) -> None
C++: mrpt::opengl::CPointCloud::loadFromPointsMap(const class mrpt::maps::CPointsMap *) --> void
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
@}
C++: mrpt::opengl::CPointCloud::onUpdateBuffers_Points() --> void
- reserve(...)
- reserve(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, N: int) -> None
Like STL std::vector's reserve
C++: mrpt::opengl::CPointCloud::reserve(size_t) --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, N: int) -> None
Set the number of points (with contents undefined)
C++: mrpt::opengl::CPointCloud::resize(size_t) --> void
- setGradientColors(...)
- setGradientColors(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, colorMin: mrpt.pymrpt.mrpt.img.TColorf, colorMax: mrpt.pymrpt.mrpt.img.TColorf) -> None
Sets the colors used as extremes when colorFromDepth is enabled.
C++: mrpt::opengl::CPointCloud::setGradientColors(const struct mrpt::img::TColorf &, const struct mrpt::img::TColorf &) --> void
- setPoint(...)
- setPoint(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, i: int, x: float, y: float, z: float) -> None
Write an individual point (checks for "i" in the valid range only in
Debug).
C++: mrpt::opengl::CPointCloud::setPoint(size_t, const float, const float, const float) --> void
- setPoint_fast(...)
- setPoint_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, i: int, x: float, y: float, z: float) -> None
Write an individual point (without checking validity of the index).
C++: mrpt::opengl::CPointCloud::setPoint_fast(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> int
@{
C++: mrpt::opengl::CPointCloud::size() const --> size_t
- size_unprotected(...)
- size_unprotected(self: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> int
Like size(), but without locking the data mutex (internal usage)
C++: mrpt::opengl::CPointCloud::size_unprotected() const --> size_t
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CPointCloud, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
C++: mrpt::opengl::CPointCloud::toYAMLMap(class mrpt::containers::yaml &) const --> void
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create() -> mrpt.pymrpt.mrpt.opengl.CPointCloud
C++: mrpt::opengl::CPointCloud::Create() --> class std::shared_ptr<class mrpt::opengl::CPointCloud>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPointCloud::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPointCloud::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderPoints:
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints
C++: mrpt::opengl::CRenderizableShaderPoints::operator=(const class mrpt::opengl::CRenderizableShaderPoints &) --> class mrpt::opengl::CRenderizableShaderPoints &
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::freeOpenGLResources() --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::renderUpdateBuffers() const --> void
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Methods inherited from PLY_Importer:
- getLoadPLYErrorString(...)
- getLoadPLYErrorString(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer) -> str
Return a description of the error if loadFromPlyFile() returned false,
or an empty string if the file was loaded without problems.
C++: mrpt::opengl::PLY_Importer::getLoadPLYErrorString() const --> std::string
- loadFromPlyFile(...)
- loadFromPlyFile(*args, **kwargs)
Overloaded function.
1. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str) -> bool
2. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str, file_comments: List[str]) -> bool
3. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str, file_comments: List[str], file_obj_info: List[str]) -> bool
Loads from a PLY file.
The filename to open. It can be either in binary or
text format.
If provided (!=nullptr) the list of comment
strings stored in the file will be returned.
If provided (!=nullptr) the list of "object
info" strings stored in the file will be returned.
false on any error in the file format or reading it. To obtain
more details on the error you can call getLoadPLYErrorString()
C++: mrpt::opengl::PLY_Importer::loadFromPlyFile(const std::string &, class std::vector<std::string > *, class std::vector<std::string > *) --> bool
Methods inherited from PLY_Exporter:
- getSavePLYErrorString(...)
- getSavePLYErrorString(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter) -> str
Return a description of the error if loadFromPlyFile() returned false,
or an empty string if the file was loaded without problems.
C++: mrpt::opengl::PLY_Exporter::getSavePLYErrorString() const --> std::string
- saveToPlyFile(...)
- saveToPlyFile(*args, **kwargs)
Overloaded function.
1. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str) -> bool
2. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool) -> bool
3. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool, file_comments: List[str]) -> bool
4. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool, file_comments: List[str], file_obj_info: List[str]) -> bool
Saves to a PLY file.
The filename to be saved.
If provided (!=nullptr) the list of comment
strings stored in the file will be returned.
If provided (!=nullptr) the list of "object
info" strings stored in the file will be returned.
false on any error writing the file. To obtain more details on
the error you can call getSavePLYErrorString()
C++: mrpt::opengl::PLY_Exporter::saveToPlyFile(const std::string &, bool, const class std::vector<std::string > &, const class std::vector<std::string > &) const --> bool
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CPointCloudColoured(CRenderizableShaderPoints, PLY_Importer, PLY_Exporter) |
|
A cloud of points, each one with an individual colour (R,G,B). The alpha
component is shared by all the points and is stored in the base member
m_color_A.
To load from a points-map, CPointCloudColoured::loadFromPointsMap().
This class uses smart optimizations while rendering to efficiently draw
clouds of millions of points, using octrees.
![mrpt::opengl::CPointCloudColoured](preview_CPointCloudColoured.png)
opengl::Scene, opengl::CPointCloud |
|
- Method resolution order:
- CPointCloudColoured
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- PLY_Importer
- PLY_Exporter
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPointCloudColoured::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, arg0: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, arg0: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
Erase all the points
C++: mrpt::opengl::CPointCloudColoured::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPointCloudColoured::clone() const --> class mrpt::rtti::CObject *
- empty(...)
- empty(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> bool
C++: mrpt::opengl::CPointCloudColoured::empty() const --> bool
- getActuallyRendered(...)
- getActuallyRendered(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> int
Get the number of elements actually rendered in the last render event.
C++: mrpt::opengl::CPointCloudColoured::getActuallyRendered() const --> size_t
- getPoint3Df(...)
- getPoint3Df(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, i: int) -> mrpt::math::TPoint3D_<float>
NOTE: This method is intentionally not protected by the shared_mutex,
since it's called in the inner loops of the octree, which acquires the
lock once.
C++: mrpt::opengl::CPointCloudColoured::getPoint3Df(size_t) const --> const struct mrpt::math::TPoint3D_<float> &
- getPointColor(...)
- getPointColor(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int) -> mrpt.pymrpt.mrpt.img.TColor
C++: mrpt::opengl::CPointCloudColoured::getPointColor(size_t) const --> struct mrpt::img::TColor
- getPointColor_fast(...)
- getPointColor_fast(*args, **kwargs)
Overloaded function.
1. getPointColor_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int, R: float, G: float, B: float) -> None
Like but without checking for out-of-index erors
C++: mrpt::opengl::CPointCloudColoured::getPointColor_fast(size_t, float &, float &, float &) const --> void
2. getPointColor_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int, r: int, g: int, b: int) -> None
C++: mrpt::opengl::CPointCloudColoured::getPointColor_fast(size_t, unsigned char &, unsigned char &, unsigned char &) const --> void
- insertPoint(...)
- insertPoint(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, p: mrpt.pymrpt.mrpt.math.TPointXYZfRGBAu8) -> None
inserts a new point
C++: mrpt::opengl::CPointCloudColoured::insertPoint(const struct mrpt::math::TPointXYZfRGBAu8 &) --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CPointCloudColoured::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- markAllPointsAsNew(...)
- markAllPointsAsNew(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
C++: mrpt::opengl::CPointCloudColoured::markAllPointsAsNew() --> void
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
C++: mrpt::opengl::CPointCloudColoured::onUpdateBuffers_Points() --> void
- push_back(...)
- push_back(*args, **kwargs)
Overloaded function.
1. push_back(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, x: float, y: float, z: float, R: float, G: float, B: float) -> None
2. push_back(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, x: float, y: float, z: float, R: float, G: float, B: float, A: float) -> None
Inserts a new point into the point cloud.
C++: mrpt::opengl::CPointCloudColoured::push_back(float, float, float, float, float, float, float) --> void
- recolorizeByCoordinate(...)
- recolorizeByCoordinate(*args, **kwargs)
Overloaded function.
1. recolorizeByCoordinate(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, coord_min: float, coord_max: float) -> None
2. recolorizeByCoordinate(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, coord_min: float, coord_max: float, coord_index: int) -> None
3. recolorizeByCoordinate(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, coord_min: float, coord_max: float, coord_index: int, color_map: mrpt.pymrpt.mrpt.img.TColormap) -> None
Regenerates the color of each point according the one coordinate
(coord_index:0,1,2 for X,Y,Z) and the given color map.
C++: mrpt::opengl::CPointCloudColoured::recolorizeByCoordinate(const float, const float, const int, const enum mrpt::img::TColormap) --> void
- reserve(...)
- reserve(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, N: int) -> None
Like STL std::vector's reserve
C++: mrpt::opengl::CPointCloudColoured::reserve(size_t) --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, N: int) -> None
Set the number of points, with undefined contents
C++: mrpt::opengl::CPointCloudColoured::resize(size_t) --> void
- setPoint(...)
- setPoint(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, i: int, p: mrpt.pymrpt.mrpt.math.TPointXYZfRGBAu8) -> None
Write an individual point (checks for "i" in the valid range only in
Debug).
C++: mrpt::opengl::CPointCloudColoured::setPoint(size_t, const struct mrpt::math::TPointXYZfRGBAu8 &) --> void
- setPointColor_fast(...)
- setPointColor_fast(*args, **kwargs)
Overloaded function.
1. setPointColor_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int, R: float, G: float, B: float) -> None
2. setPointColor_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int, R: float, G: float, B: float, A: float) -> None
Like but without checking for out-of-index erors
C++: mrpt::opengl::CPointCloudColoured::setPointColor_fast(size_t, float, float, float, float) --> void
- setPointColor_u8_fast(...)
- setPointColor_u8_fast(*args, **kwargs)
Overloaded function.
1. setPointColor_u8_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int, r: int, g: int, b: int) -> None
2. setPointColor_u8_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, index: int, r: int, g: int, b: int, a: int) -> None
C++: mrpt::opengl::CPointCloudColoured::setPointColor_u8_fast(size_t, uint8_t, uint8_t, uint8_t, uint8_t) --> void
- setPoint_fast(...)
- setPoint_fast(*args, **kwargs)
Overloaded function.
1. setPoint_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, i: int, p: mrpt.pymrpt.mrpt.math.TPointXYZfRGBAu8) -> None
Like but does not check for index out of bounds
C++: mrpt::opengl::CPointCloudColoured::setPoint_fast(size_t, const struct mrpt::math::TPointXYZfRGBAu8 &) --> void
2. setPoint_fast(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, i: int, x: float, y: float, z: float) -> None
Like but does not check for index out of bounds
C++: mrpt::opengl::CPointCloudColoured::setPoint_fast(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> int
Return the number of points
C++: mrpt::opengl::CPointCloudColoured::size() const --> size_t
- size_unprotected(...)
- size_unprotected(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> int
Like size(), but without locking the data mutex (internal usage)
C++: mrpt::opengl::CPointCloudColoured::size_unprotected() const --> size_t
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
C++: mrpt::opengl::CPointCloudColoured::toYAMLMap(class mrpt::containers::yaml &) const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPointCloudColoured::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPointCloudColoured::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderPoints:
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints
C++: mrpt::opengl::CRenderizableShaderPoints::operator=(const class mrpt::opengl::CRenderizableShaderPoints &) --> class mrpt::opengl::CRenderizableShaderPoints &
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::freeOpenGLResources() --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::renderUpdateBuffers() const --> void
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Methods inherited from PLY_Importer:
- getLoadPLYErrorString(...)
- getLoadPLYErrorString(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer) -> str
Return a description of the error if loadFromPlyFile() returned false,
or an empty string if the file was loaded without problems.
C++: mrpt::opengl::PLY_Importer::getLoadPLYErrorString() const --> std::string
- loadFromPlyFile(...)
- loadFromPlyFile(*args, **kwargs)
Overloaded function.
1. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str) -> bool
2. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str, file_comments: List[str]) -> bool
3. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str, file_comments: List[str], file_obj_info: List[str]) -> bool
Loads from a PLY file.
The filename to open. It can be either in binary or
text format.
If provided (!=nullptr) the list of comment
strings stored in the file will be returned.
If provided (!=nullptr) the list of "object
info" strings stored in the file will be returned.
false on any error in the file format or reading it. To obtain
more details on the error you can call getLoadPLYErrorString()
C++: mrpt::opengl::PLY_Importer::loadFromPlyFile(const std::string &, class std::vector<std::string > *, class std::vector<std::string > *) --> bool
Methods inherited from PLY_Exporter:
- getSavePLYErrorString(...)
- getSavePLYErrorString(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter) -> str
Return a description of the error if loadFromPlyFile() returned false,
or an empty string if the file was loaded without problems.
C++: mrpt::opengl::PLY_Exporter::getSavePLYErrorString() const --> std::string
- saveToPlyFile(...)
- saveToPlyFile(*args, **kwargs)
Overloaded function.
1. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str) -> bool
2. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool) -> bool
3. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool, file_comments: List[str]) -> bool
4. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool, file_comments: List[str], file_obj_info: List[str]) -> bool
Saves to a PLY file.
The filename to be saved.
If provided (!=nullptr) the list of comment
strings stored in the file will be returned.
If provided (!=nullptr) the list of "object
info" strings stored in the file will be returned.
false on any error writing the file. To obtain more details on
the error you can call getSavePLYErrorString()
C++: mrpt::opengl::PLY_Exporter::saveToPlyFile(const std::string &, bool, const class std::vector<std::string > &, const class std::vector<std::string > &) const --> bool
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CPolyhedron(CRenderizableShaderWireFrame, CRenderizableShaderTriangles) |
|
This class represents arbitrary polyhedra. The class includes a set of
static methods to create common polyhedrons. The class includes many methods
to create standard polyhedra, not intended to be fast but to be simple. For
example, the dodecahedron is not created efficiently: first, an icosahedron
is created, and a duality operator is applied to it, which yields the
dodecahedron. This way, code is much smaller, although much slower. This is
not a big problem, since polyhedron creation does not usually take a
significant amount of time (they are created once and rendered many times).
Polyhedra information and models have been gotten from the Wikipedia,
https://wikipedia.org
![mrpt::opengl::CPolyhedron](preview_CPolyhedron.png)
opengl::Scene |
|
- Method resolution order:
- CPolyhedron
- CRenderizableShaderWireFrame
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPolyhedron::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, arg0: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, arg0: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, : mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
C++: mrpt::opengl::CPolyhedron::operator=(const class mrpt::opengl::CPolyhedron &) --> class mrpt::opengl::CPolyhedron &
- augment(...)
- augment(*args, **kwargs)
Overloaded function.
1. augment(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, height: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Augments a polyhedron to a given height. This operation is roughly dual
to the truncation: given a body P, the operation dtdP and aP yield
resembling results.
getDual,truncate,cantellate
C++: mrpt::opengl::CPolyhedron::augment(double) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
2. augment(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, height: float, numVertices: int) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Augments a polyhedron to a given height. This method only affects to
faces with certain number of vertices.
augment(double) const
C++: mrpt::opengl::CPolyhedron::augment(double, size_t) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
3. augment(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
4. augment(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, direction: bool) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Augments a polyhedron, so that the resulting triangles are equilateral.
If the argument is true, triangles are "cut" from the polyhedron, instead
of being added.
std::logic_error a non-regular face has been found.
augment(double) const
C++: mrpt::opengl::CPolyhedron::augment(bool) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
5. augment(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, numVertices: int) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
6. augment(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, numVertices: int, direction: bool) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Augments a polyhedron, so that the resulting triangles are equilateral;
affects only faces with certain number of faces. If the second argument
is true, triangles are "cut" from the polyhedron.
std::logic_error a non-regular face has been found.
augment(double) const
C++: mrpt::opengl::CPolyhedron::augment(size_t, bool) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- cantellate(...)
- cantellate(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, factor: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Cantellates a polyhedron to a given factor.
getDual,truncate,augment
C++: mrpt::opengl::CPolyhedron::cantellate(double) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPolyhedron::clone() const --> class mrpt::rtti::CObject *
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
C++: mrpt::opengl::CPolyhedron::freeOpenGLResources() --> void
- getCenter(...)
- getCenter(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, center: mrpt::math::TPoint3D_<double>) -> None
Gets the center of the polyhedron.
C++: mrpt::opengl::CPolyhedron::getCenter(struct mrpt::math::TPoint3D_<double> &) const --> void
- getDual(...)
- getDual(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
@{
Given a polyhedron, creates its dual.
truncate,cantellate,augment
std::logic_error Can't get the dual to this polyhedron.
C++: mrpt::opengl::CPolyhedron::getDual() const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- getNumberOfEdges(...)
- getNumberOfEdges(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> int
Gets the amount of edges.
C++: mrpt::opengl::CPolyhedron::getNumberOfEdges() const --> uint32_t
- getNumberOfFaces(...)
- getNumberOfFaces(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> int
Gets the amount of faces.
C++: mrpt::opengl::CPolyhedron::getNumberOfFaces() const --> uint32_t
- getNumberOfVertices(...)
- getNumberOfVertices(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> int
Gets the amount of vertices.
C++: mrpt::opengl::CPolyhedron::getNumberOfVertices() const --> uint32_t
- getVolume(...)
- getVolume(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> float
Gets the polyhedron volume. Won't work properly if the polyhedron is not
convex.
C++: mrpt::opengl::CPolyhedron::getVolume() const --> double
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CPolyhedron::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isClosed(...)
- isClosed(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> bool
Returns true if the polygon is a completely closed object.
C++: mrpt::opengl::CPolyhedron::isClosed() const --> bool
- isWireframe(...)
- isWireframe(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> bool
Returns whether the polyhedron will be rendered as a wireframe object.
C++: mrpt::opengl::CPolyhedron::isWireframe() const --> bool
- makeConvexPolygons(...)
- makeConvexPolygons(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
Recomputes polygons, if necessary, so that each one is convex.
C++: mrpt::opengl::CPolyhedron::makeConvexPolygons() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
C++: mrpt::opengl::CPolyhedron::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
C++: mrpt::opengl::CPolyhedron::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
C++: mrpt::opengl::CPolyhedron::renderUpdateBuffers() const --> void
- rotate(...)
- rotate(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, angle: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Rotates a polyhedron around the Z axis a given amount of radians. In
some cases, this operation may be necessary to view the symmetry between
related objects.
scale
C++: mrpt::opengl::CPolyhedron::rotate(double) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- scale(...)
- scale(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, factor: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Scales a polyhedron to a given factor.
std::logic_error factor is not a strictly positive number.
rotate
C++: mrpt::opengl::CPolyhedron::scale(double) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- setWireframe(...)
- setWireframe(*args, **kwargs)
Overloaded function.
1. setWireframe(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
2. setWireframe(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, enabled: bool) -> None
Sets whether the polyhedron will be rendered as a wireframe object.
C++: mrpt::opengl::CPolyhedron::setWireframe(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
@}
C++: mrpt::opengl::CPolyhedron::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- truncate(...)
- truncate(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron, factor: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Truncates a polyhedron to a given factor.
getDual,cantellate,augment
std::logic_error Polyhedron truncation results in skew polygons
and thus it's impossible to perform.
C++: mrpt::opengl::CPolyhedron::truncate(double) const --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- updatePolygons(...)
- updatePolygons(self: mrpt.pymrpt.mrpt.opengl.CPolyhedron) -> None
@}
Updates the mutable list of polygons used in rendering and ray tracing.
C++: mrpt::opengl::CPolyhedron::updatePolygons() const --> void
Static methods defined here:
- CreateArchimedeanRegularAntiprism(...) from builtins.PyCapsule
- CreateArchimedeanRegularAntiprism(numBaseEdges: int, baseRadius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular antiprism whose lateral polygons are equilateral
triangles, and so each face of its is a regular polygon. Due to vertex
transitivity, the resulting object is always archimedean.
CreateRegularAntiprism,CreateCustomAntiprism
C++: mrpt::opengl::CPolyhedron::CreateArchimedeanRegularAntiprism(uint32_t, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateArchimedeanRegularPrism(...) from builtins.PyCapsule
- CreateArchimedeanRegularPrism(numBaseEdges: int, baseRadius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular prism whose lateral area is comprised of squares, and
so each face of its is a regular polygon. Due to vertex transitivity, the
resulting object is always archimedean.
CreateRegularPrism,CreateCustomPrism
C++: mrpt::opengl::CPolyhedron::CreateArchimedeanRegularPrism(uint32_t, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateCatalanDoublePyramid(...) from builtins.PyCapsule
- CreateCatalanDoublePyramid(numBaseEdges: int, height: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a double pyramid whose dual is exactly an archimedean prism.
Creates an octahedron if numBaseEdges is equal to 4.
Actually resulting height is significantly higher than that passed
to the algorithm.
CreateDoublePyramid,CreateArchimedeanRegularPrism,getDual
C++: mrpt::opengl::CPolyhedron::CreateCatalanDoublePyramid(uint32_t, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateCatalanTrapezohedron(...) from builtins.PyCapsule
- CreateCatalanTrapezohedron(numBaseEdges: int, height: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a trapezohedron whose dual is exactly an archimedean antiprism.
Creates a cube if numBaseEdges is equal to 3.
Actually resulting height is significantly higher than that passed
to the algorithm.
CreateTrapezohedron,CreateArchimedeanRegularAntiprism,getDual
C++: mrpt::opengl::CPolyhedron::CreateCatalanTrapezohedron(uint32_t, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateCubicPrism(...) from builtins.PyCapsule
- CreateCubicPrism(*args, **kwargs)
Overloaded function.
1. CreateCubicPrism(x1: float, x2: float, y1: float, y2: float, z1: float, z2: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
@{
Creates a cubic prism, given the coordinates of two opposite vertices.
Each edge will be parallel to one of the coordinate axes, although the
orientation may change by assigning a pose to the object.
CreateCubicPrism(const mrpt::math::TPoint3D &,const
mrpt::math::TPoint3D
&),CreateParallelepiped,CreateCustomPrism,CreateRegularPrism,CreateArchimedeanRegularPrism
C++: mrpt::opengl::CPolyhedron::CreateCubicPrism(double, double, double, double, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
2. CreateCubicPrism(p1: mrpt::math::TPoint3D_<double>, p2: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a cubic prism, given two opposite vertices.
CreateCubicPrism(double,double,double,double,double,double),CreateParallelepiped,CreateCustomPrism,CreateRegularPrism,CreateArchimedeanRegularPrism
C++: mrpt::opengl::CPolyhedron::CreateCubicPrism(const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateCuboctahedron(...) from builtins.PyCapsule
- CreateCuboctahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a cuboctahedron, consisting of six square faces and eight
triangular ones (see http://en.wikipedia.org/wiki/Cuboctahedron). There
are several ways to create a cuboctahedron:
Hexahedron truncated to a certain extent.Octahedron
truncated to a certain extent.Cantellated
tetrahedronDual to a rhombic dodecahedron.
CreateHexahedron,CreateOctahedron,truncate,CreateTetrahedron,cantellate,CreateRhombicuboctahedron,CreateRhombicDodecahedron,
C++: mrpt::opengl::CPolyhedron::CreateCuboctahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateCupola(...) from builtins.PyCapsule
- CreateCupola(numBaseEdges: int, edgeLength: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a cupola.
std::logic_error if the number of edges is odd or less than four.
C++: mrpt::opengl::CPolyhedron::CreateCupola(uint32_t, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateDeltoidalHexecontahedron(...) from builtins.PyCapsule
- CreateDeltoidalHexecontahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a deltoidal hexecontahedron, dual to the rhombicosidodecahedron.
This body consists of 60 kites (see
http://en.wikipedia.org/wiki/Deltoidal_hexecontahedron).
CreateRhombicosidodecahedron
C++: mrpt::opengl::CPolyhedron::CreateDeltoidalHexecontahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateDeltoidalIcositetrahedron(...) from builtins.PyCapsule
- CreateDeltoidalIcositetrahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a deltoidal icositetrahedron, dual to the rhombicuboctahedron.
This body consists of 24 kites (see
http://en.wikipedia.org/wiki/Deltoidal_icositetrahedron).
CreateRhombicuboctahedron
C++: mrpt::opengl::CPolyhedron::CreateDeltoidalIcositetrahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateDodecahedron(...) from builtins.PyCapsule
- CreateDodecahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular dodecahedron (see
http://en.wikipedia.org/wiki/Dodecahedron). The dodecahedron is created as
the dual to an icosahedron.
CreateIcosahedron,getDual,CreateTruncatedDodecahedron,CreateTruncatedIcosahedron,CreateIcosidodecahedron,CreateRhombicosidodecahedron
C++: mrpt::opengl::CPolyhedron::CreateDodecahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateEmpty(...) from builtins.PyCapsule
- CreateEmpty() -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates an empty Polyhedron.
C++: mrpt::opengl::CPolyhedron::CreateEmpty() --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateHexahedron(...) from builtins.PyCapsule
- CreateHexahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular cube, also called hexahedron (see
http://en.wikipedia.org/wiki/Hexahedron). The hexahedron is created as a
cubic prism which transitive edges. Another ways to create it include:
Dual to an octahedron.Parallelepiped with three
orthogonal, equally-lengthed vectors.Triangular trapezohedron
with proper height.
CreateOctahedron,getDual,CreateParallelepiped,CreateTrapezohedron,CreateTruncatedHexahedron,CreateTruncatedOctahedron,CreateCuboctahedron,CreateRhombicuboctahedron
C++: mrpt::opengl::CPolyhedron::CreateHexahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateIcosahedron(...) from builtins.PyCapsule
- CreateIcosahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular icosahedron (see
http://en.wikipedia.org/wiki/Icosahedron). The icosahedron is created as a
gyroelongated pentagonal bipyramid with transitive edges, and it's the
dual to a dodecahedron.
CreateJohnsonSolidWithConstantBase,CreateDodecahedron,getDual,CreateTruncatedIcosahedron,CreateTruncatedDodecahedron,CreateIcosidodecahedron,CreateRhombicosidodecahedron
C++: mrpt::opengl::CPolyhedron::CreateIcosahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateIcosidodecahedron(...) from builtins.PyCapsule
- CreateIcosidodecahedron(*args, **kwargs)
Overloaded function.
1. CreateIcosidodecahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
2. CreateIcosidodecahedron(radius: float, type: bool) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates an icosidodecahedron, with 12 pentagons and 20 triangles (see
http://en.wikipedia.org/wiki/Icosidodecahedron). Certain truncations of
either a dodecahedron or an icosahedron yield an icosidodecahedron.
The dual of the icosidodecahedron is the rhombic triacontahedron.
If the second argument is set to false, the lower rotunda is rotated. In
this case, the object created is a pentagonal orthobirotunda (see
http://en.wikipedia.org/wiki/Pentagonal_orthobirotunda). This object
presents symmetry against the XY plane and is not vertex transitive, so
it's a Johnson's solid.
CreateDodecahedron,CreateIcosahedron,truncate,CreateRhombicosidodecahedron,CreateRhombicTriacontahedron
C++: mrpt::opengl::CPolyhedron::CreateIcosidodecahedron(double, bool) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateJohnsonSolidWithConstantBase(...) from builtins.PyCapsule
- CreateJohnsonSolidWithConstantBase(*args, **kwargs)
Overloaded function.
1. CreateJohnsonSolidWithConstantBase(numBaseEdges: int, baseRadius: float, components: str) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
2. CreateJohnsonSolidWithConstantBase(numBaseEdges: int, baseRadius: float, components: str, shifts: int) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a series of concatenated solids (most of which are prismatoids)
whose base is a regular polygon with a given number of edges. Every face
of the resulting body will be a regular polygon, so it is a Johnson solid;
in special cases, it may be archimedean or even platonic.
The shape of the body is defined by the string argument, which can
include one or more of the following:
<center>
StringBodyRestrictions
P+Upward pointing pyramidMust be the last
object, vertex number cannot surpass 5
P-Downward pointing pyramidMust be the first
object, vertex number cannot surpass 5
C+Upward pointing cupolaMust be the last object,
vertex number must be an even number in the range 4-10.
C-Downward pointing cupolaMust be the first
object, vertex number must be an even number in the range 4-10.
GC+Upward pointing cupola, rotatedMust be the
last object, vertex number must be an even number in the range
4-10.
GC-Downward pointing cupola, rotatedMust be the
first object, vertex number must be an even number in the range
4-10.
PRArchimedean prismCannot abut other
prism
AArchimedean antiprismNone
R+Upward pointing rotundaMust be the last
object, vertex number must be exactly 10
R-Downward pointing rotundaMust be the first
object, vertex number must be exactly 10
GR+Upward pointing rotunda, rotatedMust be the
last object, vertex number must be exactly 10
GR-Downward pointing rotundaMust be the first
object, vertex number must be exactly 10
</center>
Some examples of bodies are:
<center>
StringVerticesResulting
body
P+3Tetrahedron
PR4Hexahedron
P-P+4Octahedron
A3Octahedron
C+PRC-
8Rhombicuboctahedron
P-AP+5Icosahedron
R-R+10Icosidodecahedron
</center>
C++: mrpt::opengl::CPolyhedron::CreateJohnsonSolidWithConstantBase(uint32_t, double, const std::string &, size_t) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CPolyhedron::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- CreateOctahedron(...) from builtins.PyCapsule
- CreateOctahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular octahedron (see
http://en.wikipedia.org/wiki/Octahedron). The octahedron is created as a
square bipyramid whit transitive edges and vertices. Another ways to
create an octahedron are:
Dual to an hexahedronTriangular antiprism with transitive
vertices.Conveniently truncated tetrahedron.
CreateHexahedron,getDual,CreateArchimedeanAntiprism,CreateTetrahedron,truncate,CreateTruncatedOctahedron,CreateTruncatedHexahedron,CreateCuboctahedron,CreateRhombicuboctahedron
C++: mrpt::opengl::CPolyhedron::CreateOctahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateParallelepiped(...) from builtins.PyCapsule
- CreateParallelepiped(base: mrpt::math::TPoint3D_<double>, v1: mrpt::math::TPoint3D_<double>, v2: mrpt::math::TPoint3D_<double>, v3: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a parallelepiped, given a base point and three vectors
represented as points.
CreateCubicPrism
C++: mrpt::opengl::CPolyhedron::CreateParallelepiped(const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreatePentagonalRotunda(...) from builtins.PyCapsule
- CreatePentagonalRotunda(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
@{
Creates a pentagonal rotunda (half an icosidodecahedron), consisting of
six pentagons, ten triangles and a decagon (see
http://en.wikipedia.org/wiki/Pentagonal_rotunda).
CreateIcosidodecahedron,CreateJohnsonSolidWithConstantBase
C++: mrpt::opengl::CPolyhedron::CreatePentagonalRotunda(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreatePentakisDodecahedron(...) from builtins.PyCapsule
- CreatePentakisDodecahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a pentakis dodecahedron, dual to the truncated icosahedron. This
body consists of 60 isosceles triangles (see
http://en.wikipedia.org/wiki/Pentakis_dodecahedron).
CreateTruncatedIcosahedron
C++: mrpt::opengl::CPolyhedron::CreatePentakisDodecahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRandomPolyhedron(...) from builtins.PyCapsule
- CreateRandomPolyhedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a random polyhedron from the static methods.
C++: mrpt::opengl::CPolyhedron::CreateRandomPolyhedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularAntiprism(...) from builtins.PyCapsule
- CreateRegularAntiprism(numBaseEdges: int, baseRadius: float, height: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates an antiprism whose base is a regular polygon. The upper base is
rotated
with respect to the lower one, where N is the
number of vertices in the base, and thus the lateral triangles are
isosceles.
CreateCustomAntiprism,CreateArchimedeanRegularAntiprism
C++: mrpt::opengl::CPolyhedron::CreateRegularAntiprism(uint32_t, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularBifrustum(...) from builtins.PyCapsule
- CreateRegularBifrustum(numBaseEdges: int, baseRadius: float, height1: float, ratio1: float, height2: float, ratio2: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a bifrustum (double truncated pyramid) whose base is a regular
polygon lying in the XY plane.
CreateBifrustum
C++: mrpt::opengl::CPolyhedron::CreateRegularBifrustum(uint32_t, double, double, double, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularDoublePyramid(...) from builtins.PyCapsule
- CreateRegularDoublePyramid(numBaseEdges: int, baseRadius: float, height1: float, height2: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular double pyramid whose base is a regular polygon.
CreateDoublePyramid
C++: mrpt::opengl::CPolyhedron::CreateRegularDoublePyramid(uint32_t, double, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularFrustum(...) from builtins.PyCapsule
- CreateRegularFrustum(numBaseEdges: int, baseRadius: float, height: float, ratio: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
This is a synonym for CreateRegularTruncatedPyramid.
CreateRegularTruncatedPyramid
C++: mrpt::opengl::CPolyhedron::CreateRegularFrustum(uint32_t, double, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularPrism(...) from builtins.PyCapsule
- CreateRegularPrism(numBaseEdges: int, baseRadius: float, height: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular prism whose base is a regular polygon and whose edges
are either parallel or perpendicular to the XY plane.
CreateCubicPrism,CreateCustomPrism,CreateArchimedeanRegularAntiprism
C++: mrpt::opengl::CPolyhedron::CreateRegularPrism(uint32_t, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularPyramid(...) from builtins.PyCapsule
- CreateRegularPyramid(numBaseEdges: int, baseRadius: float, height: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular pyramid whose base is a regular polygon.
CreatePyramid
C++: mrpt::opengl::CPolyhedron::CreateRegularPyramid(uint32_t, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRegularTruncatedPyramid(...) from builtins.PyCapsule
- CreateRegularTruncatedPyramid(numBaseEdges: int, baseRadius: float, height: float, ratio: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a regular truncated pyramid whose base is a regular polygon.
CreateTruncatedPyramid
C++: mrpt::opengl::CPolyhedron::CreateRegularTruncatedPyramid(uint32_t, double, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRhombicDodecahedron(...) from builtins.PyCapsule
- CreateRhombicDodecahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a rhombic dodecahedron, dual to the cuboctahedron. This body
consists of 12 rhombi (see
http://en.wikipedia.org/wiki/Rhombic_dodecahedron).
CreateCuboctahedron
C++: mrpt::opengl::CPolyhedron::CreateRhombicDodecahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRhombicTriacontahedron(...) from builtins.PyCapsule
- CreateRhombicTriacontahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a rhombic triacontahedron, dual to the icosidodecahedron. This
body consists of 30 rhombi (see
http://en.wikipedia.org/wiki/Rhombic_triacontahedron).
CreateIcosidodecahedron
C++: mrpt::opengl::CPolyhedron::CreateRhombicTriacontahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRhombicosidodecahedron(...) from builtins.PyCapsule
- CreateRhombicosidodecahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a rhombicosidodecahedron, consisting of 30 squares, 12 pentagons
and 20 triangles (see
http://en.wikipedia.org/wiki/Rhombicosidodecahedron). This object can be
obtained as the cantellation of either a dodecahedron or an icosahedron.
The dual of the rhombicosidodecahedron is the deltoidal hexecontahedron.
CreateDodecahedron,CreateIcosahedron,CreateIcosidodecahedron,CreateDeltoidalHexecontahedron
C++: mrpt::opengl::CPolyhedron::CreateRhombicosidodecahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateRhombicuboctahedron(...) from builtins.PyCapsule
- CreateRhombicuboctahedron(*args, **kwargs)
Overloaded function.
1. CreateRhombicuboctahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
2. CreateRhombicuboctahedron(radius: float, type: bool) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a rhombicuboctahedron, with 18 squares and 8 triangles (see
http://en.wikipedia.org/wiki/Rhombicuboctahedron), calculated as an
elongated square bicupola. It can also be calculated as a cantellated
hexahedron or octahedron, and its dual is the deltoidal icositetrahedron.
If the second argument is set to false, the lower cupola is rotated, so
that the objet created is an elongated square gyrobicupola (see
http://en.wikipedia.org/wiki/Elongated_square_gyrobicupola). This is not
an archimedean solid, but a Johnson one, since it hasn't got vertex
transitivity.
CreateJohnsonSolidWithConstantBase,CreateHexahedron,CreateOctahedron,cantellate,CreateCuboctahedron,CreateDeltoidalIcositetrahedron
C++: mrpt::opengl::CPolyhedron::CreateRhombicuboctahedron(double, bool) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTetrahedron(...) from builtins.PyCapsule
- CreateTetrahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
@{
Creates a regular tetrahedron (see
http://en.wikipedia.org/wiki/Tetrahedron). The tetrahedron is created as a
triangular pyramid whose edges and vertices are transitive.
The tetrahedron is the dual to itself.
CreatePyramid,CreateJohnsonSolidWithConstantBase,CreateTruncatedTetrahedron
C++: mrpt::opengl::CPolyhedron::CreateTetrahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTetrakisHexahedron(...) from builtins.PyCapsule
- CreateTetrakisHexahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a tetrakis hexahedron, dual to the truncated octahedron. This
body consists of 24 isosceles triangles (see
http://en.wikipedia.org/wiki/Tetrakis_hexahedron).
CreateTruncatedOctahedron
C++: mrpt::opengl::CPolyhedron::CreateTetrakisHexahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTrapezohedron(...) from builtins.PyCapsule
- CreateTrapezohedron(numBaseEdges: int, baseRadius: float, basesDistance: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a trapezohedron, consisting of 2*N kites, where N is the number
of edges in the base. The base radius controls the polyhedron height,
whilst the distance between bases affects the height.
When the number of edges equals 3, the polyhedron is actually a
parallelepiped, and it can even be a cube.
C++: mrpt::opengl::CPolyhedron::CreateTrapezohedron(uint32_t, double, double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTriakisIcosahedron(...) from builtins.PyCapsule
- CreateTriakisIcosahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a triakis icosahedron, dual to the truncated dodecahedron. This
body consists of 60 isosceles triangles
http://en.wikipedia.org/wiki/Triakis_icosahedron).
CreateTruncatedDodecahedron
C++: mrpt::opengl::CPolyhedron::CreateTriakisIcosahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTriakisOctahedron(...) from builtins.PyCapsule
- CreateTriakisOctahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a triakis octahedron, dual to the truncated hexahedron. This
body consists of 24 isosceles triangles (see
http://en.wikipedia.org/wiki/Triakis_octahedron).
CreateTruncatedHexahedron
C++: mrpt::opengl::CPolyhedron::CreateTriakisOctahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTriakisTetrahedron(...) from builtins.PyCapsule
- CreateTriakisTetrahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
@{
Creates a triakis tetrahedron, dual to the truncated tetrahedron. This
body consists of 12 isosceles triangles (see
http://en.wikipedia.org/wiki/Triakis_tetrahedron).
CreateTruncatedTetrahedron
C++: mrpt::opengl::CPolyhedron::CreateTriakisTetrahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTruncatedDodecahedron(...) from builtins.PyCapsule
- CreateTruncatedDodecahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a truncated dodecahedron, consisting of 12 dodecagons and 20
triangles (see http://en.wikipedia.org/wiki/Truncated_dodecahedron). The
truncated dodecahedron is the dual to the triakis icosahedron.
CreateDodecahedron,CreateTriakisIcosahedron
C++: mrpt::opengl::CPolyhedron::CreateTruncatedDodecahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTruncatedHexahedron(...) from builtins.PyCapsule
- CreateTruncatedHexahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a truncated hexahedron, with six octogonal faces and eight
triangular ones (see http://en.wikipedia.org/wiki/Truncated_hexahedron).
The truncated octahedron is dual to the triakis octahedron.
CreateHexahedron,CreateTriakisOctahedron
C++: mrpt::opengl::CPolyhedron::CreateTruncatedHexahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTruncatedIcosahedron(...) from builtins.PyCapsule
- CreateTruncatedIcosahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a truncated icosahedron, consisting of 20 hexagons and 12
pentagons. This object resembles a typical soccer ball (see
http://en.wikipedia.org/wiki/Truncated_icosahedron). The pentakis
dodecahedron is the dual to the truncated icosahedron.
CreateIcosahedron,CreatePentakisDodecahedron
C++: mrpt::opengl::CPolyhedron::CreateTruncatedIcosahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTruncatedOctahedron(...) from builtins.PyCapsule
- CreateTruncatedOctahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
Creates a truncated octahedron, with eight hexagons and eight squares
(see http://en.wikipedia.org/wiki/Truncated_octahedron). It's the dual to
the tetrakis hexahedron.
CreateOctahedron,CreateTetrakisHexahedron
C++: mrpt::opengl::CPolyhedron::CreateTruncatedOctahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- CreateTruncatedTetrahedron(...) from builtins.PyCapsule
- CreateTruncatedTetrahedron(radius: float) -> mrpt.pymrpt.mrpt.opengl.CPolyhedron
@{
Creates a truncated tetrahedron, consisting of four triangular faces and
for hexagonal ones (see
http://en.wikipedia.org/wiki/Truncated_tetrahedron). Its dual is the
triakis tetrahedron.
CreateTetrahedron,CreateTriakisTetrahedron
C++: mrpt::opengl::CPolyhedron::CreateTruncatedTetrahedron(double) --> class std::shared_ptr<class mrpt::opengl::CPolyhedron>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CPolyhedron::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Data and other attributes defined here:
- TPolyhedronEdge = <class 'mrpt.pymrpt.mrpt.opengl.CPolyhedron.TPolyhedronEdge'>
- Struct used to store a polyhedron edge. The struct consists only of two
vertex indices, used to access the polyhedron vertex list.
- TPolyhedronFace = <class 'mrpt.pymrpt.mrpt.opengl.CPolyhedron.TPolyhedronFace'>
- Struct used to store a polyhedron face. Consists on a set of vertex
indices and a normal vector.
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CRenderizable(mrpt.pymrpt.mrpt.serialization.CSerializable) |
|
The base class of 3D objects that can be directly rendered through OpenGL.
In this class there are a set of common properties to all 3D objects,
mainly:
- Its SE(3) pose (x,y,z,yaw,pitch,roll), relative to the parent object,
or the global frame of reference for root objects (inserted into a
mrpt::opengl::Scene).
- A name: A name that can be optionally asigned to objects for
easing its reference.
- A RGBA color: This field will be used in simple elements (points,
lines, text,...) but is ignored in more complex objects that carry their own
color information (triangle sets,...)
- Shininess: See materialShininess(float)
See the main class opengl::Scene
opengl::Scene, mrpt::opengl |
|
- Method resolution order:
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizable::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, : mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::operator=(const class mrpt::opengl::CRenderizable &) --> class mrpt::opengl::CRenderizable &
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Free opengl buffers
C++: mrpt::opengl::CRenderizable::freeOpenGLResources() --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Called whenever m_outdatedBuffers is true: used to re-generate
OpenGL vertex buffers, etc. before they are sent for rendering in
render()
C++: mrpt::opengl::CRenderizable::renderUpdateBuffers() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizable::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Data and other attributes defined here:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CRenderizableShaderPoints(CRenderizable) |
|
Renderizable generic renderer for objects using the points shader.
All points may have the same point size (see setPointSize()) or a dynamic,
depth-dependent size to emulate the effect of larger points when looked
closely (see enableVariablePointSize()).
In the latter case, point size is computed in the shader as:
gl_PointSize = vertexPointSize +
variablePointSize_k/(variablePointSize_DepthScale*gl_Position.z + 0.01);
where the paramters vertexPointSize, variablePointSize_k, and
variablePointSize_DepthScale can be set in this class via setPointSize(),
setVariablePointSize_k(), and setVariablePointSize_DepthScale(),
respectively.
opengl::Scene |
|
- Method resolution order:
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderPoints::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints
C++: mrpt::opengl::CRenderizableShaderPoints::operator=(const class mrpt::opengl::CRenderizableShaderPoints &) --> class mrpt::opengl::CRenderizableShaderPoints &
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::freeOpenGLResources() --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderPoints::onUpdateBuffers_Points() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
C++: mrpt::opengl::CRenderizableShaderPoints::renderUpdateBuffers() const --> void
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderPoints::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CRenderizableShaderText(CRenderizable) |
|
Renderizable generic renderer for objects using the "text shader".
opengl::Scene |
|
- Method resolution order:
- CRenderizableShaderText
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderText::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText
C++: mrpt::opengl::CRenderizableShaderText::operator=(const class mrpt::opengl::CRenderizableShaderText &) --> class mrpt::opengl::CRenderizableShaderText &
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
C++: mrpt::opengl::CRenderizableShaderText::freeOpenGLResources() --> void
- onUpdateBuffers_Text(...)
- onUpdateBuffers_Text(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderText::onUpdateBuffers_Text() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
C++: mrpt::opengl::CRenderizableShaderText::renderUpdateBuffers() const --> void
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderText::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CRenderizableShaderTexturedTriangles(CRenderizable) |
|
Renderizable generic renderer for objects using the triangles-with-a-texture
shader.
CTexturedPlane, opengl::CSetOfTexturedTriangles |
|
- Method resolution order:
- CRenderizableShaderTexturedTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::operator=(const class mrpt::opengl::CRenderizableShaderTexturedTriangles &) --> class mrpt::opengl::CRenderizableShaderTexturedTriangles &
- assignImage(...)
- assignImage(*args, **kwargs)
Overloaded function.
1. assignImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, img: mrpt.pymrpt.mrpt.img.CImage, imgAlpha: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture and a transparency image, and enables transparency (If
the images are not 2^N x 2^M, they will be internally filled to its
dimensions to be powers of two)
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::assignImage(const class mrpt::img::CImage &, const class mrpt::img::CImage &) --> void
2. assignImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture image, and disable transparency.
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::assignImage(const class mrpt::img::CImage &) --> void
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace()
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableLight(bool) --> void
- enableTextureLinearInterpolation(...)
- enableTextureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
Enable linear interpolation of textures (default=false, use nearest
pixel)
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureLinearInterpolation(bool) --> void
- enableTextureMipMap(...)
- enableTextureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureMipMap(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::freeOpenGLResources() --> void
- getTextureAlphaImage(...)
- getTextureAlphaImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureAlphaImage() const --> const class mrpt::img::CImage &
- getTextureImage(...)
- getTextureImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureImage() const --> const class mrpt::img::CImage &
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
VERY IMPORTANT: If you use a multi-thread application, you MUST call
this from the same thread that will later destruct the object in order to
the OpenGL texture memory to be correctly deleted.
Calling this method more than once has no effects. If you use one
thread, this method will be automatically called when rendering, so there
is no need to explicitly call it.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::initializeTextures() const --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::isLightEnabled() const --> bool
- onUpdateBuffers_TexturedTriangles(...)
- onUpdateBuffers_TexturedTriangles(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::onUpdateBuffers_TexturedTriangles() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::renderUpdateBuffers() const --> void
- textureImageHasBeenAssigned(...)
- textureImageHasBeenAssigned(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureImageHasBeenAssigned() const --> bool
- textureLinearInterpolation(...)
- textureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureLinearInterpolation() const --> bool
- textureMipMap(...)
- textureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureMipMap() const --> bool
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CRenderizableShaderTriangles(CRenderizable) |
|
Renderizable generic renderer for objects using the triangles shader.
opengl::Scene |
|
- Method resolution order:
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderTriangles::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles
C++: mrpt::opengl::CRenderizableShaderTriangles::operator=(const class mrpt::opengl::CRenderizableShaderTriangles &) --> class mrpt::opengl::CRenderizableShaderTriangles &
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::freeOpenGLResources() --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderTriangles::onUpdateBuffers_Triangles() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::renderUpdateBuffers() const --> void
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderTriangles::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CRenderizableShaderWireFrame(CRenderizable) |
|
Renderizable generic renderer for objects using the wireframe shader.
opengl::Scene |
|
- Method resolution order:
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderWireFrame::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, : mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame
C++: mrpt::opengl::CRenderizableShaderWireFrame::operator=(const class mrpt::opengl::CRenderizableShaderWireFrame &) --> class mrpt::opengl::CRenderizableShaderWireFrame &
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::freeOpenGLResources() --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderWireFrame::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::renderUpdateBuffers() const --> void
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Static methods defined here:
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CRenderizableShaderWireFrame::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Returns a deep copy (clone) of the object, indepently of its class.
C++: mrpt::rtti::CObject::clone() const --> class mrpt::rtti::CObject *
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSetOfLines(CRenderizableShaderWireFrame, CRenderizableShaderPoints) |
|
A set of independent lines (or segments), one line with its own start and
end positions (X,Y,Z). Optionally, the vertices can be also shown as dots.
![mrpt::opengl::CSetOfLines](preview_CSetOfLines.png)
opengl::Scene |
|
- Method resolution order:
- CSetOfLines
- CRenderizableShaderWireFrame
- CRenderizableShaderPoints
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfLines::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
- appendLine(...)
- appendLine(*args, **kwargs)
Overloaded function.
1. appendLine(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, p0: mrpt::math::TPoint3D_<double>, p1: mrpt::math::TPoint3D_<double>) -> None
C++: mrpt::opengl::CSetOfLines::appendLine(struct mrpt::math::TPoint3D_<double>, struct mrpt::math::TPoint3D_<double>) --> void
2. appendLine(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, sgm: mrpt.pymrpt.mrpt.math.TSegment3D) -> None
Appends a line to the set.
C++: mrpt::opengl::CSetOfLines::appendLine(const struct mrpt::math::TSegment3D &) --> void
3. appendLine(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float) -> None
Appends a line to the set, given the coordinates of its bounds.
C++: mrpt::opengl::CSetOfLines::appendLine(double, double, double, double, double, double) --> void
- appendLineStrip(...)
- appendLineStrip(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, x: float, y: float, z: float) -> None
Appends a line whose starting point is the end point of the last line
(similar to OpenGL's GL_LINE_STRIP)
std::exception If there is no previous segment
C++: mrpt::opengl::CSetOfLines::appendLineStrip(float, float, float) --> void
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, : mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> mrpt.pymrpt.mrpt.opengl.CSetOfLines
C++: mrpt::opengl::CSetOfLines::operator=(const class mrpt::opengl::CSetOfLines &) --> class mrpt::opengl::CSetOfLines &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
Clear the list of segments
C++: mrpt::opengl::CSetOfLines::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfLines::clone() const --> class mrpt::rtti::CObject *
- empty(...)
- empty(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> bool
Returns true if there are no line segments.
C++: mrpt::opengl::CSetOfLines::empty() const --> bool
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, enable: bool) -> None
C++: mrpt::opengl::CSetOfLines::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
C++: mrpt::opengl::CSetOfLines::freeOpenGLResources() --> void
- getLineByIndex(...)
- getLineByIndex(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, index: int, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float) -> None
Gets a specific line in the set, given its index.
getLineByIndex
C++: mrpt::opengl::CSetOfLines::getLineByIndex(size_t, double &, double &, double &, double &, double &, double &) const --> void
- getLineCount(...)
- getLineCount(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> int
Returns the total count of lines in this set.
C++: mrpt::opengl::CSetOfLines::getLineCount() const --> size_t
- getVerticesPointSize(...)
- getVerticesPointSize(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> float
C++: mrpt::opengl::CSetOfLines::getVerticesPointSize() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CSetOfLines::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> bool
C++: mrpt::opengl::CSetOfLines::isAntiAliasingEnabled() const --> bool
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
C++: mrpt::opengl::CSetOfLines::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
C++: mrpt::opengl::CSetOfLines::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> None
C++: mrpt::opengl::CSetOfLines::renderUpdateBuffers() const --> void
- reserve(...)
- reserve(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, r: int) -> None
Reserves an amount of lines to the set. This method should be used when
some known amount of lines is going to be inserted, so that only a memory
allocation is needed.
resize
C++: mrpt::opengl::CSetOfLines::reserve(size_t) --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, nLines: int) -> None
Resizes the set.
reserve
C++: mrpt::opengl::CSetOfLines::resize(size_t) --> void
- setLineByIndex(...)
- setLineByIndex(*args, **kwargs)
Overloaded function.
1. setLineByIndex(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, index: int, segm: mrpt.pymrpt.mrpt.math.TSegment3D) -> None
Sets a specific line in the set, given its index.
appendLine
C++: mrpt::opengl::CSetOfLines::setLineByIndex(size_t, const struct mrpt::math::TSegment3D &) --> void
2. setLineByIndex(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, index: int, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float) -> None
Sets a specific line in the set, given its index.
appendLine
C++: mrpt::opengl::CSetOfLines::setLineByIndex(size_t, double, double, double, double, double, double) --> void
- setVerticesPointSize(...)
- setVerticesPointSize(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines, size_points: float) -> None
Enable showing vertices as dots if size_points>0
C++: mrpt::opengl::CSetOfLines::setVerticesPointSize(const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.CSetOfLines) -> int
Returns the total count of lines in this set.
C++: mrpt::opengl::CSetOfLines::size() const --> size_t
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create() -> mrpt.pymrpt.mrpt.opengl.CSetOfLines
C++: mrpt::opengl::CSetOfLines::Create() --> class std::shared_ptr<class mrpt::opengl::CSetOfLines>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfLines::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfLines::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSetOfObjects(CRenderizable) |
|
A set of object, which are referenced to the coordinates framework
established in this object.
It can be established a hierarchy of "CSetOfObjects", where the coordinates
framework of each one will be referenced to the parent's one.
The list of child objects is accessed directly as in the class Scene
opengl::Scene |
|
- Method resolution order:
- CSetOfObjects
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfObjects::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
- asYAML(...)
- asYAML(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> mrpt.pymrpt.mrpt.containers.yaml
Prints all objects in human-readable YAML form.
(New in MRPT 2.1.3)
C++: mrpt::opengl::CSetOfObjects::asYAML() const --> class mrpt::containers::yaml
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, : mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> mrpt.pymrpt.mrpt.opengl.CSetOfObjects
C++: mrpt::opengl::CSetOfObjects::operator=(const class mrpt::opengl::CSetOfObjects &) --> class mrpt::opengl::CSetOfObjects &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
Clear the list of objects in the scene, deleting objects' memory.
C++: mrpt::opengl::CSetOfObjects::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfObjects::clone() const --> class mrpt::rtti::CObject *
- contains(...)
- contains(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, obj: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
C++: mrpt::opengl::CSetOfObjects::contains(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &) const --> bool
- dumpListOfObjects(...)
- dumpListOfObjects(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, lst: List[str]) -> None
Retrieves a list of all objects in text form
Prefer asYAML() (since MRPT 2.1.3)
C++: mrpt::opengl::CSetOfObjects::dumpListOfObjects(class std::vector<std::string > &) const --> void
- empty(...)
- empty(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> bool
Returns true if there are no objects.
C++: mrpt::opengl::CSetOfObjects::empty() const --> bool
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
C++: mrpt::opengl::CSetOfObjects::freeOpenGLResources() --> void
- getByName(...)
- getByName(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, str: str) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Returns the first object with a given name, or a nullptr pointer if not
found.
C++: mrpt::opengl::CSetOfObjects::getByName(const std::string &) --> class std::shared_ptr<class mrpt::opengl::CRenderizable>
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
C++: mrpt::opengl::CSetOfObjects::initializeTextures() const --> void
- insert(...)
- insert(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, newObject: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Insert a new object to the list.
C++: mrpt::opengl::CSetOfObjects::insert(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &) --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CSetOfObjects::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> bool
C++: mrpt::opengl::CSetOfObjects::isCompositeObject() const --> bool
- removeObject(...)
- removeObject(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, obj: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Removes the given object from the scene (it also deletes the object to
free its memory).
C++: mrpt::opengl::CSetOfObjects::removeObject(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &) --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> None
C++: mrpt::opengl::CSetOfObjects::renderUpdateBuffers() const --> void
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CSetOfObjects::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CSetOfObjects::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects) -> int
Returns number of objects.
C++: mrpt::opengl::CSetOfObjects::size() --> size_t
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CSetOfObjects, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CSetOfObjects::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create() -> mrpt.pymrpt.mrpt.opengl.CSetOfObjects
C++: mrpt::opengl::CSetOfObjects::Create() --> class std::shared_ptr<class mrpt::opengl::CSetOfObjects>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfObjects::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfObjects::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
- posePDF2opengl(...) from builtins.PyCapsule
- posePDF2opengl(*args, **kwargs)
Overloaded function.
1. posePDF2opengl(o: mrpt.pymrpt.mrpt.poses.CPosePDF) -> mrpt.pymrpt.mrpt.opengl.CSetOfObjects
Returns a representation of a the PDF - this is just an auxiliary
function, it's more natural to call
mrpt::poses::CPosePDF::getAs3DObject
C++: mrpt::opengl::CSetOfObjects::posePDF2opengl(const class mrpt::poses::CPosePDF &) --> class std::shared_ptr<class mrpt::opengl::CSetOfObjects>
2. posePDF2opengl(o: mrpt::poses::CPointPDF) -> mrpt.pymrpt.mrpt.opengl.CSetOfObjects
Returns a representation of a the PDF - this is just an auxiliary
function, it's more natural to call
mrpt::poses::CPointPDF::getAs3DObject
C++: mrpt::opengl::CSetOfObjects::posePDF2opengl(const class mrpt::poses::CPointPDF &) --> class std::shared_ptr<class mrpt::opengl::CSetOfObjects>
3. posePDF2opengl(o: mrpt.pymrpt.mrpt.poses.CPose3DPDF) -> mrpt.pymrpt.mrpt.opengl.CSetOfObjects
Returns a representation of a the PDF - this is just an auxiliary
function, it's more natural to call
mrpt::poses::CPose3DPDF::getAs3DObject
C++: mrpt::opengl::CSetOfObjects::posePDF2opengl(const class mrpt::poses::CPose3DPDF &) --> class std::shared_ptr<class mrpt::opengl::CSetOfObjects>
4. posePDF2opengl(o: mrpt::poses::CPose3DQuatPDF) -> mrpt.pymrpt.mrpt.opengl.CSetOfObjects
Returns a representation of a the PDF - this is just an auxiliary
function, it's more natural to call
mrpt::poses::CPose3DQuatPDF::getAs3DObject
C++: mrpt::opengl::CSetOfObjects::posePDF2opengl(const class mrpt::poses::CPose3DQuatPDF &) --> class std::shared_ptr<class mrpt::opengl::CSetOfObjects>
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSetOfTexturedTriangles(CRenderizableShaderTexturedTriangles) |
|
A set of textured triangles.
This class can be used to draw any solid, arbitrarily complex object with
textures.
opengl::Scene |
|
- Method resolution order:
- CSetOfTexturedTriangles
- CRenderizableShaderTexturedTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfTexturedTriangles::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, : mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles
C++: mrpt::opengl::CSetOfTexturedTriangles::operator=(const class mrpt::opengl::CSetOfTexturedTriangles &) --> class mrpt::opengl::CSetOfTexturedTriangles &
- clearTriangles(...)
- clearTriangles(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> None
C++: mrpt::opengl::CSetOfTexturedTriangles::clearTriangles() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfTexturedTriangles::clone() const --> class mrpt::rtti::CObject *
- getTriangle(...)
- getTriangle(*args, **kwargs)
Overloaded function.
1. getTriangle(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, idx: int) -> mrpt.pymrpt.mrpt.opengl.TTriangle
C++: mrpt::opengl::CSetOfTexturedTriangles::getTriangle(size_t) const --> struct mrpt::opengl::TTriangle
2. getTriangle(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, idx: int, t: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
C++: mrpt::opengl::CSetOfTexturedTriangles::getTriangle(size_t, struct mrpt::opengl::TTriangle &) const --> void
- getTrianglesCount(...)
- getTrianglesCount(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> int
C++: mrpt::opengl::CSetOfTexturedTriangles::getTrianglesCount() const --> size_t
- insertTriangle(...)
- insertTriangle(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, t: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
C++: mrpt::opengl::CSetOfTexturedTriangles::insertTriangle(const struct mrpt::opengl::TTriangle &) --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CSetOfTexturedTriangles::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_TexturedTriangles(...)
- onUpdateBuffers_TexturedTriangles(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles) -> None
C++: mrpt::opengl::CSetOfTexturedTriangles::onUpdateBuffers_TexturedTriangles() --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CSetOfTexturedTriangles, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CSetOfTexturedTriangles::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfTexturedTriangles::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfTexturedTriangles::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTexturedTriangles:
- assignImage(...)
- assignImage(*args, **kwargs)
Overloaded function.
1. assignImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, img: mrpt.pymrpt.mrpt.img.CImage, imgAlpha: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture and a transparency image, and enables transparency (If
the images are not 2^N x 2^M, they will be internally filled to its
dimensions to be powers of two)
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::assignImage(const class mrpt::img::CImage &, const class mrpt::img::CImage &) --> void
2. assignImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture image, and disable transparency.
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::assignImage(const class mrpt::img::CImage &) --> void
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace()
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableLight(bool) --> void
- enableTextureLinearInterpolation(...)
- enableTextureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
Enable linear interpolation of textures (default=false, use nearest
pixel)
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureLinearInterpolation(bool) --> void
- enableTextureMipMap(...)
- enableTextureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureMipMap(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::freeOpenGLResources() --> void
- getTextureAlphaImage(...)
- getTextureAlphaImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureAlphaImage() const --> const class mrpt::img::CImage &
- getTextureImage(...)
- getTextureImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureImage() const --> const class mrpt::img::CImage &
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
VERY IMPORTANT: If you use a multi-thread application, you MUST call
this from the same thread that will later destruct the object in order to
the OpenGL texture memory to be correctly deleted.
Calling this method more than once has no effects. If you use one
thread, this method will be automatically called when rendering, so there
is no need to explicitly call it.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::initializeTextures() const --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::isLightEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::renderUpdateBuffers() const --> void
- textureImageHasBeenAssigned(...)
- textureImageHasBeenAssigned(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureImageHasBeenAssigned() const --> bool
- textureLinearInterpolation(...)
- textureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureLinearInterpolation() const --> bool
- textureMipMap(...)
- textureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureMipMap() const --> bool
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSetOfTriangles(CRenderizableShaderTriangles) |
|
A set of colored triangles, able to draw any solid, arbitrarily complex
object without textures. For textures, see CSetOfTexturedTriangles
opengl::Scene, CSetOfTexturedTriangles |
|
- Method resolution order:
- CSetOfTriangles
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfTriangles::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, arg0: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, : mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> mrpt.pymrpt.mrpt.opengl.CSetOfTriangles
C++: mrpt::opengl::CSetOfTriangles::operator=(const class mrpt::opengl::CSetOfTriangles &) --> class mrpt::opengl::CSetOfTriangles &
- clearTriangles(...)
- clearTriangles(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
Clear this object, removing all triangles.
C++: mrpt::opengl::CSetOfTriangles::clearTriangles() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfTriangles::clone() const --> class mrpt::rtti::CObject *
- getTriangle(...)
- getTriangle(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, idx: int, t: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
Gets the i-th triangle
C++: mrpt::opengl::CSetOfTriangles::getTriangle(size_t, struct mrpt::opengl::TTriangle &) const --> void
- getTrianglesCount(...)
- getTrianglesCount(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> int
Get triangle count
C++: mrpt::opengl::CSetOfTriangles::getTrianglesCount() const --> size_t
- insertTriangle(...)
- insertTriangle(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, t: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
Inserts a triangle into the set
C++: mrpt::opengl::CSetOfTriangles::insertTriangle(const struct mrpt::opengl::TTriangle &) --> void
- insertTriangles(...)
- insertTriangles(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, p: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
Inserts an existing CSetOfTriangles into this one
C++: mrpt::opengl::CSetOfTriangles::insertTriangles(const class std::shared_ptr<class mrpt::opengl::CSetOfTriangles> &) --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CSetOfTriangles::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
@{
C++: mrpt::opengl::CSetOfTriangles::onUpdateBuffers_Triangles() --> void
- reserve(...)
- reserve(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, t: int) -> None
Reserves memory for certain number of triangles, avoiding multiple
memory allocation calls.
C++: mrpt::opengl::CSetOfTriangles::reserve(size_t) --> void
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Overwrite all triangles colors with the one provided
C++: mrpt::opengl::CSetOfTriangles::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Overwrite all triangles colors with the one provided
C++: mrpt::opengl::CSetOfTriangles::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CSetOfTriangles::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updatePolygons(...)
- updatePolygons(self: mrpt.pymrpt.mrpt.opengl.CSetOfTriangles) -> None
Explicitly updates the internal polygon cache, with all triangles as
polygons.
getPolygons()
C++: mrpt::opengl::CSetOfTriangles::updatePolygons() const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSetOfTriangles::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSetOfTriangles::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::freeOpenGLResources() --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::renderUpdateBuffers() const --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSimpleLine(CRenderizableShaderWireFrame) |
|
A line segment
opengl::Scene |
|
- Method resolution order:
- CSimpleLine
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSimpleLine::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float, arg1: float, arg2: float, arg3: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) -> None
doc
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
doc
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float, lineWidth: float, antiAliasing: bool) -> None
10. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> None
11. __init__(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, arg0: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, : mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> mrpt.pymrpt.mrpt.opengl.CSimpleLine
C++: mrpt::opengl::CSimpleLine::operator=(const class mrpt::opengl::CSimpleLine &) --> class mrpt::opengl::CSimpleLine &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSimpleLine::clone() const --> class mrpt::rtti::CObject *
- getLineCoords(...)
- getLineCoords(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float) -> None
(MRPT 2.3.1)
C++: mrpt::opengl::CSimpleLine::getLineCoords(float &, float &, float &, float &, float &, float &) const --> void
- getLineEnd(...)
- getLineEnd(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> mrpt::math::TPoint3D_<float>
C++: mrpt::opengl::CSimpleLine::getLineEnd() const --> struct mrpt::math::TPoint3D_<float>
- getLineStart(...)
- getLineStart(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> mrpt::math::TPoint3D_<float>
C++: mrpt::opengl::CSimpleLine::getLineStart() const --> struct mrpt::math::TPoint3D_<float>
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CSimpleLine::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine) -> None
C++: mrpt::opengl::CSimpleLine::onUpdateBuffers_Wireframe() --> void
- setLineCoords(...)
- setLineCoords(*args, **kwargs)
Overloaded function.
1. setLineCoords(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, p0: mrpt::math::TPoint3D_<float>, p1: mrpt::math::TPoint3D_<float>) -> None
C++: mrpt::opengl::CSimpleLine::setLineCoords(const struct mrpt::math::TPoint3D_<float> &, const struct mrpt::math::TPoint3D_<float> &) --> void
2. setLineCoords(self: mrpt.pymrpt.mrpt.opengl.CSimpleLine, x0: float, y0: float, z0: float, x1: float, y1: float, z1: float) -> None
(MRPT 2.3.1)
C++: mrpt::opengl::CSimpleLine::setLineCoords(float, float, float, float, float, float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSimpleLine::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSimpleLine::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::freeOpenGLResources() --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::renderUpdateBuffers() const --> void
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSkyBox(CRenderizable) |
|
A Sky Box: 6 textures that are always rendered at "infinity" to give the
impression of the scene to be much larger.
Refer to example
/>
opengl::Scene |
|
- Method resolution order:
- CSkyBox
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSkyBox::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSkyBox, arg0: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSkyBox, arg0: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSkyBox, : mrpt.pymrpt.mrpt.opengl.CSkyBox) -> mrpt.pymrpt.mrpt.opengl.CSkyBox
C++: mrpt::opengl::CSkyBox::operator=(const class mrpt::opengl::CSkyBox &) --> class mrpt::opengl::CSkyBox &
- assignImage(...)
- assignImage(self: mrpt.pymrpt.mrpt.opengl.CSkyBox, face: mrpt.pymrpt.mrpt.opengl.CUBE_TEXTURE_FACE, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture. It is mandatory to assign all 6 faces before
initializing/rendering the texture.
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CSkyBox::assignImage(const enum mrpt::opengl::CUBE_TEXTURE_FACE, const class mrpt::img::CImage &) --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSkyBox::clone() const --> class mrpt::rtti::CObject *
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> bool
C++: mrpt::opengl::CSkyBox::cullElegible() const --> bool
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> None
C++: mrpt::opengl::CSkyBox::freeOpenGLResources() --> void
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> None
C++: mrpt::opengl::CSkyBox::initializeTextures() const --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CSkyBox::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CSkyBox) -> None
C++: mrpt::opengl::CSkyBox::renderUpdateBuffers() const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSkyBox::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSkyBox::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CSphere(CGeneralizedEllipsoidTemplate_3_t) |
|
A solid or wire-frame sphere.
![mrpt::opengl::CSphere](preview_CSphere.png)
opengl::Scene |
|
- Method resolution order:
- CSphere
- CGeneralizedEllipsoidTemplate_3_t
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CSphere) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSphere::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CSphere) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CSphere, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CSphere, radius: float, nDivs: int) -> None
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CSphere, arg0: mrpt.pymrpt.mrpt.opengl.CSphere) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CSphere, arg0: mrpt.pymrpt.mrpt.opengl.CSphere) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CSphere, : mrpt.pymrpt.mrpt.opengl.CSphere) -> mrpt.pymrpt.mrpt.opengl.CSphere
C++: mrpt::opengl::CSphere::operator=(const class mrpt::opengl::CSphere &) --> class mrpt::opengl::CSphere &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CSphere) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSphere::clone() const --> class mrpt::rtti::CObject *
- getRadius(...)
- getRadius(self: mrpt.pymrpt.mrpt.opengl.CSphere) -> float
C++: mrpt::opengl::CSphere::getRadius() const --> float
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CSphere) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CSphere::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CSphere) -> None
C++: mrpt::opengl::CSphere::renderUpdateBuffers() const --> void
- setNumberDivs(...)
- setNumberDivs(self: mrpt.pymrpt.mrpt.opengl.CSphere, N: int) -> None
C++: mrpt::opengl::CSphere::setNumberDivs(int) --> void
- setRadius(...)
- setRadius(self: mrpt.pymrpt.mrpt.opengl.CSphere, r: float) -> None
C++: mrpt::opengl::CSphere::setRadius(float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CSphere, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CSphere::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CSphere::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CSphere::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CGeneralizedEllipsoidTemplate_3_t:
- enableDrawSolid3D(...)
- enableDrawSolid3D(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, v: bool) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::enableDrawSolid3D(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::freeOpenGLResources() --> void
- getCovMatrix(...)
- getCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getCovMatrix() const --> class mrpt::math::CMatrixFixed<double, 3, 3>
- getNumberOfSegments(...)
- getNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> int
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getNumberOfSegments() const --> uint32_t
- getQuantiles(...)
- getQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> float
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::getQuantiles() const --> float
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::onUpdateBuffers_Wireframe() --> void
- setCovMatrix(...)
- setCovMatrix(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrix(const class mrpt::math::CMatrixFixed<double, 3, 3> &) --> void
- setCovMatrixAndMean(...)
- setCovMatrixAndMean(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, new_cov: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_3UL_t, new_mean: mrpt.pymrpt.mrpt.math.CMatrixFixed_double_3UL_1UL_t) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setCovMatrixAndMean(const class mrpt::math::CMatrixFixed<double, 3, 3> &, const class mrpt::math::CMatrixFixed<double, 3, 1> &) --> void
- setNumberOfSegments(...)
- setNumberOfSegments(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, numSegments: int) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setNumberOfSegments(const unsigned int) --> void
- setQuantiles(...)
- setQuantiles(self: mrpt.pymrpt.mrpt.opengl.CGeneralizedEllipsoidTemplate_3_t, q: float) -> None
C++: mrpt::opengl::CGeneralizedEllipsoidTemplate<3>::setQuantiles(float) --> void
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> bool
C++: mrpt::opengl::CRenderizableShaderWireFrame::isAntiAliasingEnabled() const --> bool
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CText(CRenderizableShaderText) |
|
A 2D text that always "faces the observer" despite it having a real 3D
position, used to compute its position on the screen, and depth (so it can be
occluded).
Use setString() and setFont() to change the text and its appareance.
![mrpt::opengl::CText](preview_CText.png)
CText3D, opengl::Scene |
|
- Method resolution order:
- CText
- CRenderizableShaderText
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CText) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CText::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CText) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CText, str: str) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CText, arg0: mrpt.pymrpt.mrpt.opengl.CText) -> None
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CText, arg0: mrpt.pymrpt.mrpt.opengl.CText) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CText, : mrpt.pymrpt.mrpt.opengl.CText) -> mrpt.pymrpt.mrpt.opengl.CText
C++: mrpt::opengl::CText::operator=(const class mrpt::opengl::CText &) --> class mrpt::opengl::CText &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CText) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CText::clone() const --> class mrpt::rtti::CObject *
- computeTextExtension(...)
- computeTextExtension(self: mrpt.pymrpt.mrpt.opengl.CText) -> Tuple[float, float]
C++: mrpt::opengl::CText::computeTextExtension() const --> struct std::pair<double, double>
- getFont(...)
- getFont(self: mrpt.pymrpt.mrpt.opengl.CText) -> str
C++: mrpt::opengl::CText::getFont() const --> std::string
- getString(...)
- getString(self: mrpt.pymrpt.mrpt.opengl.CText) -> str
Return the current text associated to this label
C++: mrpt::opengl::CText::getString() const --> std::string
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CText) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
Evaluates the bounding box of this object (including possible children)
in the coordinate frame of the object parent.
C++: mrpt::opengl::CText::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- setFont(...)
- setFont(self: mrpt.pymrpt.mrpt.opengl.CText, s: str, height: int) -> None
Sets the font among "sans", "serif", "mono".
C++: mrpt::opengl::CText::setFont(const std::string &, int) --> void
- setString(...)
- setString(self: mrpt.pymrpt.mrpt.opengl.CText, s: str) -> None
Sets the text to display
C++: mrpt::opengl::CText::setString(const std::string &) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CText, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
C++: mrpt::opengl::CText::toYAMLMap(class mrpt::containers::yaml &) const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CText::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CText::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderText:
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
C++: mrpt::opengl::CRenderizableShaderText::freeOpenGLResources() --> void
- onUpdateBuffers_Text(...)
- onUpdateBuffers_Text(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderText::onUpdateBuffers_Text() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
C++: mrpt::opengl::CRenderizableShaderText::renderUpdateBuffers() const --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CText3D(CRenderizableShaderText) |
|
A 3D text (rendered with OpenGL primitives), with selectable font face and
drawing style.
Use and to change the text displayed by this object
(can be multi-lined).
Text is drawn along the (+X,+Y) axes.
Default size of characters is "1.0 units". Change it with the standard
method as with any other 3D object.
The color can be also changed with standard methods in the base class
![mrpt::opengl::CText3D](preview_CText3D.png)
opengl::Scene, CText
This class is based on code from libcvd (BSD,
http://www.edwardrosten.com/cvd/ ) |
|
- Method resolution order:
- CText3D
- CRenderizableShaderText
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CText3D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: str) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: str, arg1: str) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: str, arg1: str, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: str, arg1: str, arg2: float, arg3: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: str, arg1: str, arg2: float, arg3: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle, arg4: float) -> None
doc
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, str: str, fontName: str, scale: float, text_style: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle, text_spacing: float, text_kerning: float) -> None
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: mrpt.pymrpt.mrpt.opengl.CText3D) -> None
9. __init__(self: mrpt.pymrpt.mrpt.opengl.CText3D, arg0: mrpt.pymrpt.mrpt.opengl.CText3D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CText3D, : mrpt.pymrpt.mrpt.opengl.CText3D) -> mrpt.pymrpt.mrpt.opengl.CText3D
C++: mrpt::opengl::CText3D::operator=(const class mrpt::opengl::CText3D &) --> class mrpt::opengl::CText3D &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CText3D::clone() const --> class mrpt::rtti::CObject *
- getFont(...)
- getFont(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> str
Returns the text font
C++: mrpt::opengl::CText3D::getFont() const --> const std::string &
- getString(...)
- getString(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> str
Returns the currently text associated to this object
C++: mrpt::opengl::CText3D::getString() const --> const std::string &
- getTextStyle(...)
- getTextStyle(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle
Gets the current drawing style
C++: mrpt::opengl::CText3D::getTextStyle() const --> enum mrpt::opengl::TOpenGLFontStyle
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CText3D::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- setFont(...)
- setFont(self: mrpt.pymrpt.mrpt.opengl.CText3D, font: str) -> None
Changes the font name, among accepted values: "sans", "mono", "serif"
C++: mrpt::opengl::CText3D::setFont(const std::string &) --> void
- setString(...)
- setString(self: mrpt.pymrpt.mrpt.opengl.CText3D, s: str) -> None
Sets the displayed string
C++: mrpt::opengl::CText3D::setString(const std::string &) --> void
- setTextKerning(...)
- setTextKerning(*args, **kwargs)
Overloaded function.
1. setTextKerning(self: mrpt.pymrpt.mrpt.opengl.CText3D, text_kerning: float) -> None
C++: mrpt::opengl::CText3D::setTextKerning(const double) --> void
2. setTextKerning(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> float
C++: mrpt::opengl::CText3D::setTextKerning() const --> double
- setTextSpacing(...)
- setTextSpacing(*args, **kwargs)
Overloaded function.
1. setTextSpacing(self: mrpt.pymrpt.mrpt.opengl.CText3D, text_spacing: float) -> None
C++: mrpt::opengl::CText3D::setTextSpacing(const double) --> void
2. setTextSpacing(self: mrpt.pymrpt.mrpt.opengl.CText3D) -> float
C++: mrpt::opengl::CText3D::setTextSpacing() const --> double
- setTextStyle(...)
- setTextStyle(self: mrpt.pymrpt.mrpt.opengl.CText3D, text_style: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle) -> None
Change drawing style: FILL, OUTLINE, NICE
C++: mrpt::opengl::CText3D::setTextStyle(const enum mrpt::opengl::TOpenGLFontStyle) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CText3D, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
C++: mrpt::opengl::CText3D::toYAMLMap(class mrpt::containers::yaml &) const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CText3D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CText3D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderText:
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
C++: mrpt::opengl::CRenderizableShaderText::freeOpenGLResources() --> void
- onUpdateBuffers_Text(...)
- onUpdateBuffers_Text(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
Must be implemented in derived classes to update the geometric entities
to be drawn in "m_*_buffer" fields.
C++: mrpt::opengl::CRenderizableShaderText::onUpdateBuffers_Text() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderText) -> None
C++: mrpt::opengl::CRenderizableShaderText::renderUpdateBuffers() const --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CTextMessageCapable(pybind11_builtins.pybind11_object) |
|
Keeps a list of text messages which can be rendered to OpenGL contexts by
graphic classes. |
|
- Method resolution order:
- CTextMessageCapable
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, arg0: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> None
- addTextMessage(...)
- addTextMessage(*args, **kwargs)
Overloaded function.
1. addTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, x_frac: float, y_frac: float, text: str) -> None
2. addTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, x_frac: float, y_frac: float, text: str, unique_index: int) -> None
3. addTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, x_frac: float, y_frac: float, text: str, unique_index: int, fontParams: mrpt.pymrpt.mrpt.opengl.TFontParams) -> None
Add 2D text messages overlapped to the 3D rendered scene. The string
will remain displayed in the 3D window
until it's changed with subsequent calls to this same method, or all
the texts are cleared with clearTextMessages().
The X position, interpreted as absolute pixels from the left
if X>=1, absolute pixels from the left if X<0 or as a width factor if in
the range [0,1[.
The Y position, interpreted as absolute pixels from the bottom
if Y>=1, absolute pixels from the top if Y<0 or as a height factor if in
the range [0,1[.
The text string to display.
The text color. For example: TColorf(1.0,1.0,1.0)
An "index" for this text message, so that
subsequent calls with the same index will overwrite this text message
instead of creating new ones.
You'll need to refresh the display manually with forceRepaint().
clearTextMessages, updateTextMessage
C++: mrpt::opengl::CTextMessageCapable::addTextMessage(const double, const double, const std::string &, const unsigned long, const struct mrpt::opengl::TFontParams &) --> void
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, : mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> mrpt.pymrpt.mrpt.opengl.CTextMessageCapable
C++: mrpt::opengl::CTextMessageCapable::operator=(const class mrpt::opengl::CTextMessageCapable &) --> class mrpt::opengl::CTextMessageCapable &
- clearTextMessages(...)
- clearTextMessages(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> None
C++: mrpt::opengl::CTextMessageCapable::clearTextMessages() --> void
- getTextMessages(...)
- getTextMessages(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> mrpt::opengl::CTextMessageCapable::TListTextMessages
C++: mrpt::opengl::CTextMessageCapable::getTextMessages() const --> const struct mrpt::opengl::CTextMessageCapable::TListTextMessages &
- updateTextMessage(...)
- updateTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, unique_index: int, text: str) -> bool
Just updates the text of a given text message, without touching the
other parameters.
false if given ID doesn't exist.
C++: mrpt::opengl::CTextMessageCapable::updateTextMessage(size_t, const std::string &) --> bool
Data and other attributes defined here:
- DataPerText = <class 'mrpt.pymrpt.mrpt.opengl.CTextMessageCapable.DataPerText'>
- TListTextMessages = <class 'mrpt.pymrpt.mrpt.opengl.CTextMessageCapable.TListTextMessages'>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CTexturedPlane(CRenderizableShaderTexturedTriangles, CRenderizableShaderTriangles) |
|
A 2D plane in the XY plane with a texture image.
Lighting is disabled by default in this class, so the plane color or texture
will be independent of its orientation or shadows cast on it.
This can be changed calling enableLighting(true)
opengl::Scene |
|
- Method resolution order:
- CTexturedPlane
- CRenderizableShaderTexturedTriangles
- CRenderizableShaderTriangles
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CTexturedPlane::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, arg0: float) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, arg0: float, arg1: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, arg0: float, arg1: float, arg2: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, x_min: float, x_max: float, y_min: float, y_max: float) -> None
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, arg0: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, arg0: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, : mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> mrpt.pymrpt.mrpt.opengl.CTexturedPlane
C++: mrpt::opengl::CTexturedPlane::operator=(const class mrpt::opengl::CTexturedPlane &) --> class mrpt::opengl::CTexturedPlane &
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CTexturedPlane::clone() const --> class mrpt::rtti::CObject *
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace()
C++: mrpt::opengl::CTexturedPlane::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CTexturedPlane::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLighting(...)
- enableLighting(*args, **kwargs)
Overloaded function.
1. enableLighting(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
2. enableLighting(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, enable: bool) -> None
C++: mrpt::opengl::CTexturedPlane::enableLighting(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
C++: mrpt::opengl::CTexturedPlane::freeOpenGLResources() --> void
- getPlaneCorners(...)
- getPlaneCorners(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, xMin: float, xMax: float, yMin: float, yMax: float) -> None
Get the coordinates of the four corners that define the plane on the XY
plane.
C++: mrpt::opengl::CTexturedPlane::getPlaneCorners(float &, float &, float &, float &) const --> void
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CTexturedPlane::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- onUpdateBuffers_TexturedTriangles(...)
- onUpdateBuffers_TexturedTriangles(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
C++: mrpt::opengl::CTexturedPlane::onUpdateBuffers_TexturedTriangles() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
C++: mrpt::opengl::CTexturedPlane::onUpdateBuffers_Triangles() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane) -> None
C++: mrpt::opengl::CTexturedPlane::renderUpdateBuffers() const --> void
- setPlaneCorners(...)
- setPlaneCorners(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, xMin: float, xMax: float, yMin: float, yMax: float) -> None
Set the coordinates of the four corners that define the plane on the XY
plane.
C++: mrpt::opengl::CTexturedPlane::setPlaneCorners(float, float, float, float) --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CTexturedPlane, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
C++: mrpt::opengl::CTexturedPlane::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CTexturedPlane::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CTexturedPlane::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderTexturedTriangles:
- assignImage(...)
- assignImage(*args, **kwargs)
Overloaded function.
1. assignImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, img: mrpt.pymrpt.mrpt.img.CImage, imgAlpha: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture and a transparency image, and enables transparency (If
the images are not 2^N x 2^M, they will be internally filled to its
dimensions to be powers of two)
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::assignImage(const class mrpt::img::CImage &, const class mrpt::img::CImage &) --> void
2. assignImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Assigns a texture image, and disable transparency.
Images are copied, the original ones can be deleted.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::assignImage(const class mrpt::img::CImage &) --> void
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableLight(bool) --> void
- enableTextureLinearInterpolation(...)
- enableTextureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
Enable linear interpolation of textures (default=false, use nearest
pixel)
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureLinearInterpolation(bool) --> void
- enableTextureMipMap(...)
- enableTextureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::enableTextureMipMap(bool) --> void
- getTextureAlphaImage(...)
- getTextureAlphaImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureAlphaImage() const --> const class mrpt::img::CImage &
- getTextureImage(...)
- getTextureImage(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> mrpt.pymrpt.mrpt.img.CImage
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::getTextureImage() const --> const class mrpt::img::CImage &
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> None
VERY IMPORTANT: If you use a multi-thread application, you MUST call
this from the same thread that will later destruct the object in order to
the OpenGL texture memory to be correctly deleted.
Calling this method more than once has no effects. If you use one
thread, this method will be automatically called when rendering, so there
is no need to explicitly call it.
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::initializeTextures() const --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::isLightEnabled() const --> bool
- textureImageHasBeenAssigned(...)
- textureImageHasBeenAssigned(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureImageHasBeenAssigned() const --> bool
- textureLinearInterpolation(...)
- textureLinearInterpolation(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureLinearInterpolation() const --> bool
- textureMipMap(...)
- textureMipMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTexturedTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTexturedTriangles::textureMipMap() const --> bool
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CVectorField2D(CRenderizableShaderPoints, CRenderizableShaderTriangles, CRenderizableShaderWireFrame) |
|
A 2D vector field representation, consisting of points and arrows drawn on a
plane (invisible grid).
![mrpt::opengl::CVectorField2D](preview_CVectorField2D.png)
opengl::Scene |
|
- Method resolution order:
- CVectorField2D
- CRenderizableShaderPoints
- CRenderizableShaderTriangles
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CVectorField2D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, arg0: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg1: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, arg0: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg1: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg2: float) -> None
doc
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, arg0: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg1: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg2: float, arg3: float) -> None
doc
5. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, arg0: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg1: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, arg2: float, arg3: float, arg4: float) -> None
doc
6. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, Matrix_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, xmin: float, xmax: float, ymin: float, ymax: float) -> None
7. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, arg0: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
8. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, arg0: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
- adjustVectorFieldToGrid(...)
- adjustVectorFieldToGrid(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
Adjust the vector field in the scene (vectors magnitude) according to
the grid size.
C++: mrpt::opengl::CVectorField2D::adjustVectorFieldToGrid() --> void
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, : mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.opengl.CVectorField2D
C++: mrpt::opengl::CVectorField2D::operator=(const class mrpt::opengl::CVectorField2D &) --> class mrpt::opengl::CVectorField2D &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
Clear the matrices
C++: mrpt::opengl::CVectorField2D::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CVectorField2D::clone() const --> class mrpt::rtti::CObject *
- cols(...)
- cols(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> int
Returns the total count of rows used to represent the vector field.
C++: mrpt::opengl::CVectorField2D::cols() const --> size_t
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, enable: bool) -> None
C++: mrpt::opengl::CVectorField2D::enableAntiAliasing(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
C++: mrpt::opengl::CVectorField2D::freeOpenGLResources() --> void
- getGridLimits(...)
- getGridLimits(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, xmin: float, xmax: float, ymin: float, ymax: float) -> None
Get the coordinates of the grid on where the vector field is drawn using
the max and min values.
C++: mrpt::opengl::CVectorField2D::getGridLimits(float &, float &, float &, float &) const --> void
- getPointColor(...)
- getPointColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.img.TColorf
Get the point color in the range [0,1]
C++: mrpt::opengl::CVectorField2D::getPointColor() const --> struct mrpt::img::TColorf
- getVectorField(...)
- getVectorField(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, Matrix_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Get the vector field. Matrix_x stores the "x" component and Matrix_y
stores the "y" component.
C++: mrpt::opengl::CVectorField2D::getVectorField(class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &) const --> void
- getVectorFieldColor(...)
- getVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.img.TColorf
Get the arrow color in the range [0,1]
C++: mrpt::opengl::CVectorField2D::getVectorFieldColor() const --> struct mrpt::img::TColorf
- getVectorField_x(...)
- getVectorField_x(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t
C++: mrpt::opengl::CVectorField2D::getVectorField_x() --> class mrpt::math::CMatrixDynamic<float> &
- getVectorField_y(...)
- getVectorField_y(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t
C++: mrpt::opengl::CVectorField2D::getVectorField_y() --> class mrpt::math::CMatrixDynamic<float> &
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CVectorField2D::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> bool
C++: mrpt::opengl::CVectorField2D::isAntiAliasingEnabled() const --> bool
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
C++: mrpt::opengl::CVectorField2D::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Triangles(...)
- onUpdateBuffers_Triangles(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
C++: mrpt::opengl::CVectorField2D::onUpdateBuffers_Triangles() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
C++: mrpt::opengl::CVectorField2D::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> None
C++: mrpt::opengl::CVectorField2D::renderUpdateBuffers() const --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, rows: int, cols: int) -> None
Resizes the set.
C++: mrpt::opengl::CVectorField2D::resize(size_t, size_t) --> void
- rows(...)
- rows(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D) -> int
Returns the total count of columns used to represent the vector field.
C++: mrpt::opengl::CVectorField2D::rows() const --> size_t
- setGridCenterAndCellSize(...)
- setGridCenterAndCellSize(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, center_x: float, center_y: float, cellsize_x: float, cellsize_y: float) -> None
Set the coordinates of the grid on where the vector field will be drawn
by setting its center and the cell size.
The number of cells is marked by the content of xcomp and ycomp.
xcomp, ycomp
C++: mrpt::opengl::CVectorField2D::setGridCenterAndCellSize(const float, const float, const float, const float) --> void
- setGridLimits(...)
- setGridLimits(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, xmin: float, xmax: float, ymin: float, ymax: float) -> None
Set the coordinates of the grid on where the vector field will be drawn
using x-y max and min values.
C++: mrpt::opengl::CVectorField2D::setGridLimits(const float, const float, const float, const float) --> void
- setPointColor(...)
- setPointColor(*args, **kwargs)
Overloaded function.
1. setPointColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, R: float, G: float, B: float) -> None
2. setPointColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, R: float, G: float, B: float, A: float) -> None
Set the point color in the range [0,1]
C++: mrpt::opengl::CVectorField2D::setPointColor(const float, const float, const float, const float) --> void
- setVectorField(...)
- setVectorField(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, Matrix_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Set the vector field. Matrix_x contains the "x" component and Matrix_y
contains the "y" component.
C++: mrpt::opengl::CVectorField2D::setVectorField(class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &) --> void
- setVectorFieldColor(...)
- setVectorFieldColor(*args, **kwargs)
Overloaded function.
1. setVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, R: float, G: float, B: float) -> None
2. setVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField2D, R: float, G: float, B: float, A: float) -> None
Set the arrow color in the range [0,1]
C++: mrpt::opengl::CVectorField2D::setVectorFieldColor(const float, const float, const float, const float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CVectorField2D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CVectorField2D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizableShaderTriangles:
- cullFaces(...)
- cullFaces(*args, **kwargs)
Overloaded function.
1. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, cf: mrpt.pymrpt.mrpt.opengl.TCullFace) -> None
Control whether to render the FRONT, BACK, or BOTH (default) set of
faces. Refer to docs for glCullFace().
Example: If set to `cullFaces(TCullFace::BACK);`, back faces will not be
drawn ("culled")
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces(const enum mrpt::opengl::TCullFace &) --> void
2. cullFaces(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> mrpt.pymrpt.mrpt.opengl.TCullFace
C++: mrpt::opengl::CRenderizableShaderTriangles::cullFaces() const --> enum mrpt::opengl::TCullFace
- enableLight(...)
- enableLight(*args, **kwargs)
Overloaded function.
1. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> None
2. enableLight(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderTriangles::enableLight(bool) --> void
- isLightEnabled(...)
- isLightEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderTriangles) -> bool
C++: mrpt::opengl::CRenderizableShaderTriangles::isLightEnabled() const --> bool
Methods inherited from CRenderizableShaderWireFrame:
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class CVectorField3D(CRenderizableShaderPoints, CRenderizableShaderWireFrame) |
|
A 3D vector field representation, consisting of points and arrows drawn at
any spatial position.
This opengl object has been created to represent scene flow, and hence
both the vector field and
the coordinates of the points at which the vector field is represented
are stored in matrices because
they are computed from intensity and depth images.
![mrpt::opengl::CVectorField3D](preview_CVectorField3D.png)
opengl::Scene |
|
- Method resolution order:
- CVectorField3D
- CRenderizableShaderPoints
- CRenderizableShaderWireFrame
- CRenderizable
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CVectorField3D::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, x_vf_ini: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, y_vf_ini: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, z_vf_ini: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, x_p_ini: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, y_p_ini: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, z_p_ini: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, arg0: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
4. __init__(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, arg0: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, : mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.opengl.CVectorField3D
C++: mrpt::opengl::CVectorField3D::operator=(const class mrpt::opengl::CVectorField3D &) --> class mrpt::opengl::CVectorField3D &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
Clear the matrices
C++: mrpt::opengl::CVectorField3D::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CVectorField3D::clone() const --> class mrpt::rtti::CObject *
- cols(...)
- cols(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> int
Returns the total count of rows used to represent the vector field.
C++: mrpt::opengl::CVectorField3D::cols() const --> size_t
- enableColorFromModule(...)
- enableColorFromModule(*args, **kwargs)
Overloaded function.
1. enableColorFromModule(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
2. enableColorFromModule(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, enable: bool) -> None
C++: mrpt::opengl::CVectorField3D::enableColorFromModule(bool) --> void
- enableShowPoints(...)
- enableShowPoints(*args, **kwargs)
Overloaded function.
1. enableShowPoints(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
2. enableShowPoints(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, enable: bool) -> None
C++: mrpt::opengl::CVectorField3D::enableShowPoints(bool) --> void
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
C++: mrpt::opengl::CVectorField3D::freeOpenGLResources() --> void
- getMaxSpeedForColor(...)
- getMaxSpeedForColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> float
Get the max_speed with which lines are drawn.
C++: mrpt::opengl::CVectorField3D::getMaxSpeedForColor() const --> float
- getPointColor(...)
- getPointColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.img.TColorf
Get the point color in the range [0,1]
C++: mrpt::opengl::CVectorField3D::getPointColor() const --> struct mrpt::img::TColorf
- getPointCoordinates(...)
- getPointCoordinates(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Coord_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Coord_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Coord_z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Get the coordiantes of the points at which the vector field is
plotted: Coord_x, Coord_y and Coord_z.
C++: mrpt::opengl::CVectorField3D::getPointCoordinates(class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &) const --> void
- getVectorField(...)
- getVectorField(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Matrix_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Get the vector field in three independent matrices: Matrix_x, Matrix_y
and Matrix_z.
C++: mrpt::opengl::CVectorField3D::getVectorField(class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &) const --> void
- getVectorFieldColor(...)
- getVectorFieldColor(*args, **kwargs)
Overloaded function.
1. getVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Cmin: mrpt.pymrpt.mrpt.img.TColorf, Cmax: mrpt.pymrpt.mrpt.img.TColorf) -> None
Get the motion field min and max colors (colormap) in the range [0,1]
C++: mrpt::opengl::CVectorField3D::getVectorFieldColor(struct mrpt::img::TColorf, struct mrpt::img::TColorf) const --> void
2. getVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.img.TColorf
Get the arrow color in the range [0,1]
C++: mrpt::opengl::CVectorField3D::getVectorFieldColor() const --> struct mrpt::img::TColorf
- getVectorField_x(...)
- getVectorField_x(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t
C++: mrpt::opengl::CVectorField3D::getVectorField_x() --> class mrpt::math::CMatrixDynamic<float> &
- getVectorField_y(...)
- getVectorField_y(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t
C++: mrpt::opengl::CVectorField3D::getVectorField_y() --> class mrpt::math::CMatrixDynamic<float> &
- getVectorField_z(...)
- getVectorField_z(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t
C++: mrpt::opengl::CVectorField3D::getVectorField_z() --> class mrpt::math::CMatrixDynamic<float> &
- internalBoundingBoxLocal(...)
- internalBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
C++: mrpt::opengl::CVectorField3D::internalBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<float>
- isAntiAliasingEnabled(...)
- isAntiAliasingEnabled(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> bool
C++: mrpt::opengl::CVectorField3D::isAntiAliasingEnabled() const --> bool
- isColorFromModuleEnabled(...)
- isColorFromModuleEnabled(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> bool
C++: mrpt::opengl::CVectorField3D::isColorFromModuleEnabled() const --> bool
- onUpdateBuffers_Points(...)
- onUpdateBuffers_Points(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
C++: mrpt::opengl::CVectorField3D::onUpdateBuffers_Points() --> void
- onUpdateBuffers_Wireframe(...)
- onUpdateBuffers_Wireframe(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
C++: mrpt::opengl::CVectorField3D::onUpdateBuffers_Wireframe() --> void
- renderUpdateBuffers(...)
- renderUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> None
C++: mrpt::opengl::CVectorField3D::renderUpdateBuffers() const --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, rows: int, cols: int) -> None
Resizes the set.
C++: mrpt::opengl::CVectorField3D::resize(size_t, size_t) --> void
- rows(...)
- rows(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D) -> int
Returns the total count of columns used to represent the vector field.
C++: mrpt::opengl::CVectorField3D::rows() const --> size_t
- setMaxSpeedForColor(...)
- setMaxSpeedForColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, s: float) -> None
Set the max speed associated for the color map ( m_still_color,
m_maxspeed_color)
C++: mrpt::opengl::CVectorField3D::setMaxSpeedForColor(const float) --> void
- setMotionFieldColormap(...)
- setMotionFieldColormap(*args, **kwargs)
Overloaded function.
1. setMotionFieldColormap(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Rmin: float, Gmin: float, Bmin: float, Rmax: float, Gmax: float, Bmax: float) -> None
2. setMotionFieldColormap(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Rmin: float, Gmin: float, Bmin: float, Rmax: float, Gmax: float, Bmax: float, Amin: float) -> None
3. setMotionFieldColormap(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Rmin: float, Gmin: float, Bmin: float, Rmax: float, Gmax: float, Bmax: float, Amin: float, Amax: float) -> None
Set the motion field min and max colors (colormap) in the range [0,1]
C++: mrpt::opengl::CVectorField3D::setMotionFieldColormap(const float, const float, const float, const float, const float, const float, const float, const float) --> void
- setPointColor(...)
- setPointColor(*args, **kwargs)
Overloaded function.
1. setPointColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, R: float, G: float, B: float) -> None
2. setPointColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, R: float, G: float, B: float, A: float) -> None
Set the point color in the range [0,1]
C++: mrpt::opengl::CVectorField3D::setPointColor(const float, const float, const float, const float) --> void
- setPointCoordinates(...)
- setPointCoordinates(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Matrix_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Set the coordinates of the points at which the vector field is plotted
with Matrix_x, Matrix_y and Matrix_z.
C++: mrpt::opengl::CVectorField3D::setPointCoordinates(class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &) --> void
- setVectorField(...)
- setVectorField(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, Matrix_x: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_y: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t, Matrix_z: mrpt.pymrpt.mrpt.math.CMatrixDynamic_float_t) -> None
Set the vector field with Matrix_x, Matrix_y and Matrix_z.
C++: mrpt::opengl::CVectorField3D::setVectorField(class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &, class mrpt::math::CMatrixDynamic<float> &) --> void
- setVectorFieldColor(...)
- setVectorFieldColor(*args, **kwargs)
Overloaded function.
1. setVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, R: float, G: float, B: float) -> None
2. setVectorFieldColor(self: mrpt.pymrpt.mrpt.opengl.CVectorField3D, R: float, G: float, B: float, A: float) -> None
Set the arrow color in the range [0,1]
C++: mrpt::opengl::CVectorField3D::setVectorFieldColor(const float, const float, const float, const float) --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::CVectorField3D::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::CVectorField3D::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from CRenderizableShaderPoints:
- enableVariablePointSize(...)
- enableVariablePointSize(*args, **kwargs)
Overloaded function.
1. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> None
2. enableVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, enable: bool) -> None
Enable/disable variable eye distance-dependent point size (default=true)
C++: mrpt::opengl::CRenderizableShaderPoints::enableVariablePointSize(bool) --> void
- getPointSize(...)
- getPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getPointSize() const --> float
- getVariablePointSize_DepthScale(...)
- getVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_DepthScale() const --> float
- getVariablePointSize_k(...)
- getVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> float
C++: mrpt::opengl::CRenderizableShaderPoints::getVariablePointSize_k() const --> float
- isEnabledVariablePointSize(...)
- isEnabledVariablePointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints) -> bool
C++: mrpt::opengl::CRenderizableShaderPoints::isEnabledVariablePointSize() const --> bool
- setPointSize(...)
- setPointSize(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, p: float) -> None
By default is 1.0.
enableVariablePointSize()
C++: mrpt::opengl::CRenderizableShaderPoints::setPointSize(float) --> void
- setVariablePointSize_DepthScale(...)
- setVariablePointSize_DepthScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_DepthScale(float) --> void
- setVariablePointSize_k(...)
- setVariablePointSize_k(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderPoints, v: float) -> None
see CRenderizableShaderPoints for a discussion of this parameter.
C++: mrpt::opengl::CRenderizableShaderPoints::setVariablePointSize_k(float) --> void
Methods inherited from CRenderizableShaderWireFrame:
- enableAntiAliasing(...)
- enableAntiAliasing(*args, **kwargs)
Overloaded function.
1. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> None
2. enableAntiAliasing(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, enable: bool) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::enableAntiAliasing(bool) --> void
- getLineWidth(...)
- getLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame) -> float
C++: mrpt::opengl::CRenderizableShaderWireFrame::getLineWidth() const --> float
- setLineWidth(...)
- setLineWidth(self: mrpt.pymrpt.mrpt.opengl.CRenderizableShaderWireFrame, w: float) -> None
C++: mrpt::opengl::CRenderizableShaderWireFrame::setLineWidth(float) --> void
Methods inherited from CRenderizable:
- castShadows(...)
- castShadows(*args, **kwargs)
Overloaded function.
1. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Does the object cast shadows? (default=true)
C++: mrpt::opengl::CRenderizable::castShadows() const --> bool
2. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
3. castShadows(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, doCast: bool) -> None
Enable/disable casting shadows by this object (default=true)
C++: mrpt::opengl::CRenderizable::castShadows(bool) --> void
- cullElegible(...)
- cullElegible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Return false if this object should never be checked for being culled out
(=not rendered if its bbox are out of the screen limits).
For example, skyboxes or other special effects.
C++: mrpt::opengl::CRenderizable::cullElegible() const --> bool
- enableShowName(...)
- enableShowName(*args, **kwargs)
Overloaded function.
1. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. enableShowName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, showName: bool) -> None
Enables or disables showing the name of the object as a label when
rendering
C++: mrpt::opengl::CRenderizable::enableShowName(bool) --> void
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocal(...)
- getBoundingBoxLocal(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of this object (including possible
children) in the coordinate frame of my parent object,
i.e. if this object pose changes, the bbox returned here will change too.
This is in contrast with the local bbox returned by getBoundingBoxLocal()
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocal() const --> struct mrpt::math::TBoundingBox_<double>
- getBoundingBoxLocalf(...)
- getBoundingBoxLocalf(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TBoundingBox_float_t
the bbox. const refs are not returned for multi-thread safety.
C++: mrpt::opengl::CRenderizable::getBoundingBoxLocalf() const --> struct mrpt::math::TBoundingBox_<float>
- getCPose(...)
- getCPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.poses.CPose3D
Returns a const ref to the 3D pose of the object as mrpt::poses::CPose3D
(which explicitly contains the 3x3 rotation matrix)
C++: mrpt::opengl::CRenderizable::getCPose() const --> class mrpt::poses::CPose3D
- getColor(...)
- getColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColorf
Get color components as floats in the range [0,1]
C++: mrpt::opengl::CRenderizable::getColor() const --> struct mrpt::img::TColorf
- getColor_u8(...)
- getColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.img.TColor
Get color components as uint8_t in the range [0,255]
C++: mrpt::opengl::CRenderizable::getColor_u8() const --> struct mrpt::img::TColor
- getLocalRepresentativePoint(...)
- getLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::math::TPoint3D_<float>
Provide a representative point (in object local coordinates), used to
sort objects by eye-distance while rendering with transparencies
(Default=[0,0,0])
C++: mrpt::opengl::CRenderizable::getLocalRepresentativePoint() const --> struct mrpt::math::TPoint3D_<float>
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> str
Returns the name of the object
C++: mrpt::opengl::CRenderizable::getName() const --> std::string
- getPose(...)
- getPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt.pymrpt.mrpt.math.TPose3D
Returns the 3D pose of the object as TPose3D
C++: mrpt::opengl::CRenderizable::getPose() const --> struct mrpt::math::TPose3D
- getScaleX(...)
- getScaleX(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleX() const --> float
- getScaleY(...)
- getScaleY(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleY() const --> float
- getScaleZ(...)
- getScaleZ(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Get the current scaling factor in one axis
C++: mrpt::opengl::CRenderizable::getScaleZ() const --> float
- hasToUpdateBuffers(...)
- hasToUpdateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Returns whether notifyChange() has been invoked since the last call
to renderUpdateBuffers(), meaning the latter needs to be called again
before rendering.
C++: mrpt::opengl::CRenderizable::hasToUpdateBuffers() const --> bool
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Initializes all textures (loads them into opengl memory).
C++: mrpt::opengl::CRenderizable::initializeTextures() const --> void
- isCompositeObject(...)
- isCompositeObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Should return true if enqueueForRenderRecursive() is defined since
the object has inner children. Examples: CSetOfObjects, CAssimpModel.
C++: mrpt::opengl::CRenderizable::isCompositeObject() const --> bool
- isShowNameEnabled(...)
- isShowNameEnabled(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
enableShowName
C++: mrpt::opengl::CRenderizable::isShowNameEnabled() const --> bool
- isVisible(...)
- isVisible(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> bool
Is the object visible?
setVisibility
C++: mrpt::opengl::CRenderizable::isVisible() const --> bool
- labelObject(...)
- labelObject(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> mrpt::opengl::CText
Returns or constructs (in its first invokation) the associated
mrpt::opengl::CText object representing the label of the object.
enableShowName()
C++: mrpt::opengl::CRenderizable::labelObject() const --> class mrpt::opengl::CText &
- materialShininess(...)
- materialShininess(*args, **kwargs)
Overloaded function.
1. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> float
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess() const --> float
2. materialShininess(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, shininess: float) -> None
Material shininess (for specular lights in shaders that support it),
between 0.0f (none) to 1.0f (shiny)
C++: mrpt::opengl::CRenderizable::materialShininess(float) --> void
- notifyBBoxChange(...)
- notifyBBoxChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
C++: mrpt::opengl::CRenderizable::notifyBBoxChange() const --> void
- notifyChange(...)
- notifyChange(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Call to enable calling renderUpdateBuffers() before the next
render() rendering iteration.
C++: mrpt::opengl::CRenderizable::notifyChange() const --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColorf) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(const struct mrpt::img::TColorf &) --> class mrpt::opengl::CRenderizable &
2. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: float, G: float, B: float, A: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range 0-1)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor(float, float, float, float) --> class mrpt::opengl::CRenderizable &
- setColorA(...)
- setColorA(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,1]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA(const float) --> class mrpt::opengl::CRenderizable &
- setColorA_u8(...)
- setColorA_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, a: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set alpha (transparency) color component in the range [0,255]
a ref to this
C++: mrpt::opengl::CRenderizable::setColorA_u8(const unsigned char) --> class mrpt::opengl::CRenderizable &
- setColor_u8(...)
- setColor_u8(*args, **kwargs)
Overloaded function.
1. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, c: mrpt.pymrpt.mrpt.img.TColor) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
* Changes the default object color
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(const struct mrpt::img::TColor &) --> class mrpt::opengl::CRenderizable &
2. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
3. setColor_u8(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, R: int, G: int, B: int, A: int) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Set the color components of this object (R,G,B,Alpha, in the range
0-255)
a ref to this
C++: mrpt::opengl::CRenderizable::setColor_u8(uint8_t, uint8_t, uint8_t, uint8_t) --> class mrpt::opengl::CRenderizable &
- setLocalRepresentativePoint(...)
- setLocalRepresentativePoint(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<float>) -> None
See getLocalRepresentativePoint()
C++: mrpt::opengl::CRenderizable::setLocalRepresentativePoint(const struct mrpt::math::TPoint3D_<float> &) --> void
- setLocation(...)
- setLocation(*args, **kwargs)
Overloaded function.
1. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, x: float, y: float, z: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(double, double, double) --> class mrpt::opengl::CRenderizable &
2. setLocation(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, p: mrpt::math::TPoint3D_<double>) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Changes the location of the object, keeping untouched the orientation
a ref to this
C++: mrpt::opengl::CRenderizable::setLocation(const struct mrpt::math::TPoint3D_<double> &) --> class mrpt::opengl::CRenderizable &
- setName(...)
- setName(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, n: str) -> None
Changes the name of the object
C++: mrpt::opengl::CRenderizable::setName(const std::string &) --> void
- setPose(...)
- setPose(*args, **kwargs)
Overloaded function.
1. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Defines the SE(3) (pose=translation+rotation) of the object with respect
to its parent
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose3D &) --> class mrpt::opengl::CRenderizable &
2. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPose2D &) --> class mrpt::opengl::CRenderizable &
3. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose3D &) --> class mrpt::opengl::CRenderizable &
4. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.math.TPose2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const struct mrpt::math::TPose2D &) --> class mrpt::opengl::CRenderizable &
5. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint3D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint3D &) --> class mrpt::opengl::CRenderizable &
6. setPose(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt::poses::CPoint2D) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
C++: mrpt::opengl::CRenderizable::setPose(const class mrpt::poses::CPoint2D &) --> class mrpt::opengl::CRenderizable &
- setScale(...)
- setScale(*args, **kwargs)
Overloaded function.
1. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, s: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object, in all three axes (default=1)
a
ref to this
C++: mrpt::opengl::CRenderizable::setScale(float) --> class mrpt::opengl::CRenderizable &
2. setScale(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, sx: float, sy: float, sz: float) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Scale to apply to the object in each axis (default=1)
a ref to
this
C++: mrpt::opengl::CRenderizable::setScale(float, float, float) --> class mrpt::opengl::CRenderizable &
- setVisibility(...)
- setVisibility(*args, **kwargs)
Overloaded function.
1. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. setVisibility(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, visible: bool) -> None
Set object visibility (default=true)
isVisible
C++: mrpt::opengl::CRenderizable::setVisibility(bool) --> void
- toYAMLMap(...)
- toYAMLMap(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, propertiesMap: mrpt.pymrpt.mrpt.containers.yaml) -> None
Used from Scene::asYAML().
(New in MRPT 2.4.2)
C++: mrpt::opengl::CRenderizable::toYAMLMap(class mrpt::containers::yaml &) const --> void
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.CRenderizable, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Simulation of ray-trace, given a pose. Returns true if the ray
effectively collisions with the object (returning the distance to the
origin of the ray in "dist"), or false in other case. "dist" variable
yields undefined behaviour when false is returned
C++: mrpt::opengl::CRenderizable::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- updateBuffers(...)
- updateBuffers(self: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Calls renderUpdateBuffers() and clear the flag that is set with
notifyChange()
C++: mrpt::opengl::CRenderizable::updateBuffers() const --> void
Data and other attributes inherited from CRenderizable:
- RenderContext = <class 'mrpt.pymrpt.mrpt.opengl.CRenderizable.RenderContext'>
- Context for calls to render()
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class FrameBuffer(pybind11_builtins.pybind11_object) |
|
An OpenGL FrameBuffer resource (FBO) with either RGBA+depth or depth only
render buffers.
Refer to docs for glGenFramebuffers() and glGenRenderbuffers().
Buffer, DepthMapFBO |
|
- Method resolution order:
- FrameBuffer
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer, arg0: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer, : mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> mrpt.pymrpt.mrpt.opengl.FrameBuffer
C++: mrpt::opengl::FrameBuffer::operator=(const class mrpt::opengl::FrameBuffer &) --> class mrpt::opengl::FrameBuffer &
- bind(...)
- bind(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> mrpt.pymrpt.mrpt.opengl.FrameBufferBinding
Bind this framebuffer object to the current context.
The former binding
Bind(), CurrentBinding()
C++: mrpt::opengl::FrameBuffer::bind() --> struct mrpt::opengl::FrameBufferBinding
- blit(...)
- blit(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> None
Blit the framebuffer object onto the screen
C++: mrpt::opengl::FrameBuffer::blit() --> void
- create(...)
- create(*args, **kwargs)
Overloaded function.
1. create(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer, width: int, height: int) -> None
2. create(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer, width: int, height: int, nSamples: int) -> None
Creates a new FB object and the two (RGBA+depth) render buffers.
C++: mrpt::opengl::FrameBuffer::create(unsigned int, unsigned int, int) --> void
- createDepthMap(...)
- createDepthMap(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer, width: int, height: int) -> None
Creates a new depth-only FBO.
C++: mrpt::opengl::FrameBuffer::createDepthMap(unsigned int, unsigned int) --> void
- depthMapTextureId(...)
- depthMapTextureId(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> int
C++: mrpt::opengl::FrameBuffer::depthMapTextureId() const --> unsigned int
- destroy(...)
- destroy(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> None
Release resources
C++: mrpt::opengl::FrameBuffer::destroy() --> void
- height(...)
- height(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> int
C++: mrpt::opengl::FrameBuffer::height() const --> unsigned int
- initialized(...)
- initialized(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> bool
C++: mrpt::opengl::FrameBuffer::initialized() const --> bool
- numSamples(...)
- numSamples(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> int
C++: mrpt::opengl::FrameBuffer::numSamples() const --> int
- unbind(...)
- unbind(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> None
Unbind the framebuffer object from the context
C++: mrpt::opengl::FrameBuffer::unbind() --> void
- width(...)
- width(self: mrpt.pymrpt.mrpt.opengl.FrameBuffer) -> int
C++: mrpt::opengl::FrameBuffer::width() const --> unsigned int
Static methods defined here:
- Bind(...) from builtins.PyCapsule
- Bind(ids: mrpt.pymrpt.mrpt.opengl.FrameBufferBinding) -> None
@{
C++: mrpt::opengl::FrameBuffer::Bind(const struct mrpt::opengl::FrameBufferBinding &) --> void
- CurrentBinding(...) from builtins.PyCapsule
- CurrentBinding() -> mrpt.pymrpt.mrpt.opengl.FrameBufferBinding
C++: mrpt::opengl::FrameBuffer::CurrentBinding() --> struct mrpt::opengl::FrameBufferBinding
- Unbind(...) from builtins.PyCapsule
- Unbind() -> None
C++: mrpt::opengl::FrameBuffer::Unbind() --> void
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class FrameBufferBinding(pybind11_builtins.pybind11_object) |
|
IDs of FrameBuffers, as used in FrameBuffer |
|
- Method resolution order:
- FrameBufferBinding
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.FrameBufferBinding) -> None
Data descriptors defined here:
- drawFbId
- readFbId
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PLY_Exporter(pybind11_builtins.pybind11_object) |
|
A virtual base class that implements the capability of exporting 3D point
clouds and faces to a file in the Stanford PLY format.
https://www.mrpt.org/Support_for_the_Stanford_3D_models_file_format_PLY
PLY_Importer |
|
- Method resolution order:
- PLY_Exporter
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, arg0: mrpt.pymrpt.mrpt.opengl.PLY_Exporter) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, : mrpt.pymrpt.mrpt.opengl.PLY_Exporter) -> mrpt.pymrpt.mrpt.opengl.PLY_Exporter
C++: mrpt::opengl::PLY_Exporter::operator=(const class mrpt::opengl::PLY_Exporter &) --> class mrpt::opengl::PLY_Exporter &
- getSavePLYErrorString(...)
- getSavePLYErrorString(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter) -> str
Return a description of the error if loadFromPlyFile() returned false,
or an empty string if the file was loaded without problems.
C++: mrpt::opengl::PLY_Exporter::getSavePLYErrorString() const --> std::string
- saveToPlyFile(...)
- saveToPlyFile(*args, **kwargs)
Overloaded function.
1. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str) -> bool
2. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool) -> bool
3. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool, file_comments: List[str]) -> bool
4. saveToPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Exporter, filename: str, save_in_binary: bool, file_comments: List[str], file_obj_info: List[str]) -> bool
Saves to a PLY file.
The filename to be saved.
If provided (!=nullptr) the list of comment
strings stored in the file will be returned.
If provided (!=nullptr) the list of "object
info" strings stored in the file will be returned.
false on any error writing the file. To obtain more details on
the error you can call getSavePLYErrorString()
C++: mrpt::opengl::PLY_Exporter::saveToPlyFile(const std::string &, bool, const class std::vector<std::string > &, const class std::vector<std::string > &) const --> bool
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PLY_Importer(pybind11_builtins.pybind11_object) |
|
A virtual base class that implements the capability of importing 3D point
clouds and faces from a file in the Stanford PLY format.
https://www.mrpt.org/Support_for_the_Stanford_3D_models_file_format_PLY
PLY_Exporter |
|
- Method resolution order:
- PLY_Importer
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, arg0: mrpt.pymrpt.mrpt.opengl.PLY_Importer) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, : mrpt.pymrpt.mrpt.opengl.PLY_Importer) -> mrpt.pymrpt.mrpt.opengl.PLY_Importer
C++: mrpt::opengl::PLY_Importer::operator=(const class mrpt::opengl::PLY_Importer &) --> class mrpt::opengl::PLY_Importer &
- getLoadPLYErrorString(...)
- getLoadPLYErrorString(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer) -> str
Return a description of the error if loadFromPlyFile() returned false,
or an empty string if the file was loaded without problems.
C++: mrpt::opengl::PLY_Importer::getLoadPLYErrorString() const --> std::string
- loadFromPlyFile(...)
- loadFromPlyFile(*args, **kwargs)
Overloaded function.
1. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str) -> bool
2. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str, file_comments: List[str]) -> bool
3. loadFromPlyFile(self: mrpt.pymrpt.mrpt.opengl.PLY_Importer, filename: str, file_comments: List[str], file_obj_info: List[str]) -> bool
Loads from a PLY file.
The filename to open. It can be either in binary or
text format.
If provided (!=nullptr) the list of comment
strings stored in the file will be returned.
If provided (!=nullptr) the list of "object
info" strings stored in the file will be returned.
false on any error in the file format or reading it. To obtain
more details on the error you can call getLoadPLYErrorString()
C++: mrpt::opengl::PLY_Importer::loadFromPlyFile(const std::string &, class std::vector<std::string > *, class std::vector<std::string > *) --> bool
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_maps_CColouredPointsMap_t(pybind11_builtins.pybind11_object) |
|
Specialization
mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>
mrpt_adapters_grp |
|
- Method resolution order:
- PointCloudAdapter_mrpt_maps_CColouredPointsMap_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, obj: mrpt.pymrpt.mrpt.maps.CColouredPointsMap) -> None
- getPointRGBf(...)
- getPointRGBf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, r: float, g: float, b: float) -> None
Get RGBf color of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::getPointRGBf(size_t, float &, float &, float &) const --> void
- getPointRGBu8(...)
- getPointRGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, r: int, g: int, b: int) -> None
Get RGBu8 color of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::getPointRGBu8(size_t, unsigned char &, unsigned char &, unsigned char &) const --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::resize(const unsigned long) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setDimensions(size_t, size_t) --> void
- setInvalidPoint(...)
- setInvalidPoint(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setInvalidPoint(size_t) --> void
- setPointRGBf(...)
- setPointRGBf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, r: float, g: float, b: float) -> None
Set XYZ_RGBf coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setPointRGBf(size_t, const float, const float, const float) --> void
- setPointRGBu8(...)
- setPointRGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, r: int, g: int, b: int) -> None
Set RGBu8 coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setPointRGBu8(size_t, const unsigned char, const unsigned char, const unsigned char) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setPointXYZ(size_t, const float, const float, const float) --> void
- setPointXYZ_RGBAf(...)
- setPointXYZ_RGBAf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, x: float, y: float, z: float, r: float, g: float, b: float, a: float) -> None
Set XYZ_RGBf coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setPointXYZ_RGBAf(size_t, const float, const float, const float, const float, const float, const float, const float) --> void
- setPointXYZ_RGBu8(...)
- setPointXYZ_RGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t, idx: int, x: float, y: float, z: float, r: int, g: int, b: int) -> None
Set XYZ_RGBu8 coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::setPointXYZ_RGBu8(size_t, const float, const float, const float, const unsigned char, const unsigned char, const unsigned char) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CColouredPointsMap_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CColouredPointsMap>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t(pybind11_builtins.pybind11_object) |
|
Specialization
mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI> |
|
- Method resolution order:
- PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, obj: mrpt.pymrpt.mrpt.maps.CPointsMapXYZI) -> None
- getPointRGBf(...)
- getPointRGBf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, r: float, g: float, b: float) -> None
Get RGBf color of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::getPointRGBf(size_t, float &, float &, float &) const --> void
- getPointRGBu8(...)
- getPointRGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, r: int, g: int, b: int) -> None
Get RGBu8 color of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::getPointRGBu8(size_t, unsigned char &, unsigned char &, unsigned char &) const --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, : int, : int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::setDimensions(size_t, size_t) --> void
- setPointRGBf(...)
- setPointRGBf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, r: float, g: float, b: float) -> None
Set XYZ_RGBf coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::setPointRGBf(size_t, const float, const float, const float) --> void
- setPointRGBu8(...)
- setPointRGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, r: int, g: int, b: int) -> None
Set RGBu8 coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::setPointRGBu8(size_t, const unsigned char, const unsigned char, const unsigned char) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::setPointXYZ(size_t, const float, const float, const float) --> void
- setPointXYZ_RGBAf(...)
- setPointXYZ_RGBAf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, x: float, y: float, z: float, r: float, g: float, b: float, a: float) -> None
Set XYZ_RGBf coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::setPointXYZ_RGBAf(size_t, const float, const float, const float, const float, const float, const float, const float) --> void
- setPointXYZ_RGBu8(...)
- setPointXYZ_RGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t, idx: int, x: float, y: float, z: float, r: int, g: int, b: int) -> None
Set XYZ_RGBu8 coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::setPointXYZ_RGBu8(size_t, const float, const float, const float, const unsigned char, const unsigned char, const unsigned char) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMapXYZI_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMapXYZI>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_maps_CPointsMap_t(pybind11_builtins.pybind11_object) |
|
Specialization mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMap> |
|
- Method resolution order:
- PointCloudAdapter_mrpt_maps_CPointsMap_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMap_t, obj: mrpt.pymrpt.mrpt.maps.CPointsMap) -> None
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMap_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMap>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMap_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMap>::setDimensions(size_t, size_t) --> void
- setInvalidPoint(...)
- setInvalidPoint(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMap_t, idx: int) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMap>::setInvalidPoint(size_t) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMap_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMap>::setPointXYZ(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CPointsMap_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CPointsMap>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_maps_CSimplePointsMap_t(pybind11_builtins.pybind11_object) |
|
Specialization mrpt::opengl::PointCloudAdapter<mrpt::maps::CSimplePointsMap> |
|
- Method resolution order:
- PointCloudAdapter_mrpt_maps_CSimplePointsMap_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CSimplePointsMap_t, obj: mrpt.pymrpt.mrpt.maps.CSimplePointsMap) -> None
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CSimplePointsMap_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CSimplePointsMap>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CSimplePointsMap_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CSimplePointsMap>::setDimensions(size_t, size_t) --> void
- setInvalidPoint(...)
- setInvalidPoint(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CSimplePointsMap_t, idx: int) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CSimplePointsMap>::setInvalidPoint(size_t) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CSimplePointsMap_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CSimplePointsMap>::setPointXYZ(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CSimplePointsMap_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CSimplePointsMap>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t(pybind11_builtins.pybind11_object) |
|
Specialization
mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap> |
|
- Method resolution order:
- PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t, obj: mrpt.pymrpt.mrpt.maps.CWeightedPointsMap) -> None
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap>::setDimensions(size_t, size_t) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap>::setPointXYZ(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_maps_CWeightedPointsMap_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t(pybind11_builtins.pybind11_object) |
|
Specialization mrpt::opengl::PointCloudAdapter<CObservation3DRangeScan> |
|
- Method resolution order:
- PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t, obj: mrpt.pymrpt.mrpt.obs.CObservation3DRangeScan) -> None
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::obs::CObservation3DRangeScan>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::obs::CObservation3DRangeScan>::setDimensions(size_t, size_t) --> void
- setInvalidPoint(...)
- setInvalidPoint(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t, idx: int) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::obs::CObservation3DRangeScan>::setInvalidPoint(size_t) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::obs::CObservation3DRangeScan>::setPointXYZ(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_obs_CObservation3DRangeScan_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::obs::CObservation3DRangeScan>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t(pybind11_builtins.pybind11_object) |
|
Specialization
mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>
mrpt_adapters_grp |
|
- Method resolution order:
- PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, obj: mrpt.pymrpt.mrpt.opengl.CPointCloudColoured) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, arg0: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t) -> None
- getPointRGBf(...)
- getPointRGBf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, r: float, g: float, b: float) -> None
Get RGBf color of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::getPointRGBf(size_t, float &, float &, float &) const --> void
- getPointRGBu8(...)
- getPointRGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, r: int, g: int, b: int) -> None
Get RGBu8 color of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::getPointRGBu8(size_t, unsigned char &, unsigned char &, unsigned char &) const --> void
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setDimensions(size_t, size_t) --> void
- setInvalidPoint(...)
- setInvalidPoint(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int) -> None
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setInvalidPoint(size_t) --> void
- setPointRGBf(...)
- setPointRGBf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, r: float, g: float, b: float) -> None
Set XYZ_RGBf coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setPointRGBf(size_t, const float, const float, const float) --> void
- setPointRGBu8(...)
- setPointRGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, r: int, g: int, b: int) -> None
Set RGBu8 coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setPointRGBu8(size_t, const unsigned char, const unsigned char, const unsigned char) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setPointXYZ(size_t, const float, const float, const float) --> void
- setPointXYZ_RGBAf(...)
- setPointXYZ_RGBAf(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, x: float, y: float, z: float, Rf: float, Gf: float, Bf: float, Af: float) -> None
Set XYZ_RGBf coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setPointXYZ_RGBAf(size_t, const float, const float, const float, const float, const float, const float, const float) --> void
- setPointXYZ_RGBu8(...)
- setPointXYZ_RGBu8(*args, **kwargs)
Overloaded function.
1. setPointXYZ_RGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, x: float, y: float, z: float, r: int, g: int, b: int) -> None
2. setPointXYZ_RGBu8(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t, idx: int, x: float, y: float, z: float, r: int, g: int, b: int, a: int) -> None
Set XYZ_RGBu8 coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::setPointXYZ_RGBu8(size_t, const float, const float, const float, const unsigned char, const unsigned char, const unsigned char, const unsigned char) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloudColoured_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloudColoured>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class PointCloudAdapter_mrpt_opengl_CPointCloud_t(pybind11_builtins.pybind11_object) |
|
Specialization mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud> |
|
- Method resolution order:
- PointCloudAdapter_mrpt_opengl_CPointCloud_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t, obj: mrpt.pymrpt.mrpt.opengl.CPointCloud) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t, arg0: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t) -> None
- resize(...)
- resize(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t, N: int) -> None
Set number of points (to uninitialized values)
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud>::resize(size_t) --> void
- setDimensions(...)
- setDimensions(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t, height: int, width: int) -> None
Does nothing as of now
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud>::setDimensions(size_t, size_t) --> void
- setInvalidPoint(...)
- setInvalidPoint(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t, idx: int) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud>::setInvalidPoint(size_t) --> void
- setPointXYZ(...)
- setPointXYZ(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t, idx: int, x: float, y: float, z: float) -> None
Set XYZ coordinates of i'th point
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud>::setPointXYZ(size_t, const float, const float, const float) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.PointCloudAdapter_mrpt_opengl_CPointCloud_t) -> int
Get number of points
C++: mrpt::opengl::PointCloudAdapter<mrpt::opengl::CPointCloud>::size() const --> size_t
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class RenderQueueStats(pybind11_builtins.pybind11_object) |
|
Stats for the rendering queue |
|
- Method resolution order:
- RenderQueueStats
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.RenderQueueStats) -> None
Data descriptors defined here:
- numObjRendered
- numObjTotal
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class Scene(mrpt.pymrpt.mrpt.serialization.CSerializable) |
|
This class allows the user to create, load, save, and render 3D scenes using
OpenGL primitives.
The class can be understood as a program to be run over OpenGL, containing
a sequence of viewport definitions,
rendering primitives, etc.
It can contain from 1 up to any number of Viewports, each one
associated a set of OpenGL objects and, optionally, a preferred camera
position. Both orthogonal (2D/3D) and projection
camera models can be used for each viewport independently, greatly
increasing the possibilities of rendered scenes.
An object of Scene always contains at least one viewport
(mrpt::opengl::Viewport), named "main". Optionally, any
number of other viewports may exist. Viewports are referenced by their
names, case-sensitive strings. Each viewport contains
a different 3D scene (i.e. they render different objects), though a
mechanism exist to share the same 3D scene by a number of
viewports so memory is not wasted replicating the same objects (see
Viewport::setCloneView ).
The main rendering method, Scene::render(), assumes a viewport has
been set-up for the entire target window. That
method will internally make the required calls to opengl for creating the
additional viewports. Note that only the depth
buffer is cleared by default for each (non-main) viewport, to allow
transparencies. This can be disabled by the approppriate
member in Viewport.
An object Scene can be saved to a [".3Dscene"
file](robotics_file_formats.html) using CFileOutputStream or with the direct
method Scene::saveToFile() for posterior visualization from the
standalone application
It can be also displayed in real-time using windows in mrpt::gui or
serialized over a network socket, etc. |
|
- Method resolution order:
- Scene
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::Scene::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.Scene) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.Scene, arg0: mrpt.pymrpt.mrpt.opengl.Scene) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.Scene, arg0: mrpt.pymrpt.mrpt.opengl.Scene) -> None
- asYAML(...)
- asYAML(self: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.containers.yaml
Prints all viewports and objects in human-readable YAML form.
Note that not all objects data is serialized, so this method is not
suitable for deserialization (for that, use saveToFile(), loadFromFile()
instead).
(New in MRPT 2.1.3)
C++: mrpt::opengl::Scene::asYAML() const --> class mrpt::containers::yaml
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.Scene, obj: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.opengl.Scene
C++: mrpt::opengl::Scene::operator=(const class mrpt::opengl::Scene &) --> class mrpt::opengl::Scene &
- clear(...)
- clear(*args, **kwargs)
Overloaded function.
1. clear(self: mrpt.pymrpt.mrpt.opengl.Scene) -> None
2. clear(self: mrpt.pymrpt.mrpt.opengl.Scene, createMainViewport: bool) -> None
Clear the list of objects and viewports in the scene, deleting objects'
memory, and leaving just the default viewport with the default values.
C++: mrpt::opengl::Scene::clear(bool) --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::Scene::clone() const --> class mrpt::rtti::CObject *
- createViewport(...)
- createViewport(self: mrpt.pymrpt.mrpt.opengl.Scene, viewportName: str) -> mrpt.pymrpt.mrpt.opengl.Viewport
Creates a new viewport, adding it to the scene and returning a pointer
to the new object. Names (case-sensitive) cannot be duplicated: if the
name provided coincides with an already existing viewport, a pointer to
the existing object will be returned. The first, default viewport, is
named "main".
C++: mrpt::opengl::Scene::createViewport(const std::string &) --> class std::shared_ptr<class mrpt::opengl::Viewport>
- dumpListOfObjects(...)
- dumpListOfObjects(self: mrpt.pymrpt.mrpt.opengl.Scene, lst: List[str]) -> None
Retrieves a list of all objects in text form.
Prefer asYAML() (since MRPT 2.1.3)
C++: mrpt::opengl::Scene::dumpListOfObjects(class std::vector<std::string > &) const --> void
- enableFollowCamera(...)
- enableFollowCamera(self: mrpt.pymrpt.mrpt.opengl.Scene, enabled: bool) -> None
If disabled (default), the SceneViewer application will ignore the
camera of the "main" viewport and keep the viewport selected by the user
by hand; otherwise, the camera in the "main" viewport prevails.
followCamera
C++: mrpt::opengl::Scene::enableFollowCamera(bool) --> void
- followCamera(...)
- followCamera(self: mrpt.pymrpt.mrpt.opengl.Scene) -> bool
Return the value of "followCamera"
enableFollowCamera
C++: mrpt::opengl::Scene::followCamera() const --> bool
- freeOpenGLResources(...)
- freeOpenGLResources(self: mrpt.pymrpt.mrpt.opengl.Scene) -> None
Ensure all OpenGL buffers are destroyed.
C++: mrpt::opengl::Scene::freeOpenGLResources() --> void
- getBoundingBox(...)
- getBoundingBox(*args, **kwargs)
Overloaded function.
1. getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
2. getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.Scene, vpn: str) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
Evaluates the bounding box of the scene in the given viewport (default:
"main").
C++: mrpt::opengl::Scene::getBoundingBox(const std::string &) const --> struct mrpt::math::TBoundingBox_<double>
- getByName(...)
- getByName(*args, **kwargs)
Overloaded function.
1. getByName(self: mrpt.pymrpt.mrpt.opengl.Scene, str: str) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
2. getByName(self: mrpt.pymrpt.mrpt.opengl.Scene, str: str, viewportName: str) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Returns the first object with a given name, or nullptr (an empty smart
pointer) if not found.
C++: mrpt::opengl::Scene::getByName(const std::string &, const std::string &) --> class std::shared_ptr<class mrpt::opengl::CRenderizable>
- getViewport(...)
- getViewport(*args, **kwargs)
Overloaded function.
1. getViewport(self: mrpt.pymrpt.mrpt.opengl.Scene) -> mrpt.pymrpt.mrpt.opengl.Viewport
2. getViewport(self: mrpt.pymrpt.mrpt.opengl.Scene, viewportName: str) -> mrpt.pymrpt.mrpt.opengl.Viewport
Returns the viewport with the given name, or nullptr if it does not
exist; note that the default viewport is named "main" and initially
occupies the entire rendering area.
C++: mrpt::opengl::Scene::getViewport(const std::string &) const --> class std::shared_ptr<class mrpt::opengl::Viewport>
- initializeTextures(...)
- initializeTextures(self: mrpt.pymrpt.mrpt.opengl.Scene) -> None
Initializes all textures in the scene (See
opengl::CTexturedPlane::initializeTextures)
C++: mrpt::opengl::Scene::initializeTextures() --> void
- insert(...)
- insert(*args, **kwargs)
Overloaded function.
1. insert(self: mrpt.pymrpt.mrpt.opengl.Scene, newObject: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. insert(self: mrpt.pymrpt.mrpt.opengl.Scene, newObject: mrpt.pymrpt.mrpt.opengl.CRenderizable, viewportName: str) -> None
Insert a new object into the scene, in the given viewport (by default,
into the "main" viewport).
The viewport must be created previously, an exception will be raised if
the given name does not correspond to
an existing viewport.
createViewport, getViewport
C++: mrpt::opengl::Scene::insert(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &, const std::string &) --> void
- loadFromFile(...)
- loadFromFile(self: mrpt.pymrpt.mrpt.opengl.Scene, fil: str) -> bool
Loads the scene from a [".3Dscene" file](robotics_file_formats.html).
saveToFile
false on any error.
C++: mrpt::opengl::Scene::loadFromFile(const std::string &) --> bool
- removeObject(...)
- removeObject(*args, **kwargs)
Overloaded function.
1. removeObject(self: mrpt.pymrpt.mrpt.opengl.Scene, obj: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
2. removeObject(self: mrpt.pymrpt.mrpt.opengl.Scene, obj: mrpt.pymrpt.mrpt.opengl.CRenderizable, viewportName: str) -> None
Removes the given object from the scene (it also deletes the object to
free its memory).
C++: mrpt::opengl::Scene::removeObject(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &, const std::string &) --> void
- render(...)
- render(self: mrpt.pymrpt.mrpt.opengl.Scene) -> None
Render this scene
C++: mrpt::opengl::Scene::render() const --> void
- saveToFile(...)
- saveToFile(self: mrpt.pymrpt.mrpt.opengl.Scene, fil: str) -> bool
Saves the scene to a [".3Dscene" file](robotics_file_formats.html),
loadable by:
loadFromFile
false on any error.
C++: mrpt::opengl::Scene::saveToFile(const std::string &) const --> bool
- traceRay(...)
- traceRay(self: mrpt.pymrpt.mrpt.opengl.Scene, o: mrpt.pymrpt.mrpt.poses.CPose3D, dist: float) -> bool
Traces a ray
C++: mrpt::opengl::Scene::traceRay(const class mrpt::poses::CPose3D &, double &) const --> bool
- unloadShaders(...)
- unloadShaders(self: mrpt.pymrpt.mrpt.opengl.Scene) -> None
Ensure all shaders are unloaded in all viewports
C++: mrpt::opengl::Scene::unloadShaders() --> void
- viewportsCount(...)
- viewportsCount(self: mrpt.pymrpt.mrpt.opengl.Scene) -> int
C++: mrpt::opengl::Scene::viewportsCount() const --> size_t
Static methods defined here:
- Create(...) from builtins.PyCapsule
- Create() -> mrpt.pymrpt.mrpt.opengl.Scene
C++: mrpt::opengl::Scene::Create() --> class std::shared_ptr<class mrpt::opengl::Scene>
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::Scene::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::Scene::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class TFontParams(pybind11_builtins.pybind11_object) |
|
A description of a bitmapped or vectorized text font.
(Vectorized fonts are recommended for new code).
mrpt::opengl::gl_utils::glSetFont(),
mrpt::opengl::gl_utils::glDrawText() |
|
- Method resolution order:
- TFontParams
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.TFontParams) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.TFontParams, arg0: mrpt.pymrpt.mrpt.opengl.TFontParams) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.TFontParams, : mrpt.pymrpt.mrpt.opengl.TFontParams) -> mrpt.pymrpt.mrpt.opengl.TFontParams
C++: mrpt::opengl::TFontParams::operator=(const struct mrpt::opengl::TFontParams &) --> struct mrpt::opengl::TFontParams &
Data descriptors defined here:
- color
- draw_shadow
- shadow_color
- vfont_kerning
- vfont_name
- vfont_scale
- vfont_spacing
- vfont_style
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class TOpenGLFontStyle(pybind11_builtins.pybind11_object) |
| |
- Method resolution order:
- TOpenGLFontStyle
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __and__(...)
- __and__(self: object, other: object) -> object
- __eq__(...)
- __eq__(self: object, other: object) -> bool
- __ge__(...)
- __ge__(self: object, other: object) -> bool
- __getstate__(...)
- __getstate__(self: object) -> int
- __gt__(...)
- __gt__(self: object, other: object) -> bool
- __hash__(...)
- __hash__(self: object) -> int
- __index__(...)
- __index__(self: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle) -> int
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle, value: int) -> None
- __int__(...)
- __int__(self: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle) -> int
- __invert__(...)
- __invert__(self: object) -> object
- __le__(...)
- __le__(self: object, other: object) -> bool
- __lt__(...)
- __lt__(self: object, other: object) -> bool
- __ne__(...)
- __ne__(self: object, other: object) -> bool
- __or__(...)
- __or__(self: object, other: object) -> object
- __rand__(...)
- __rand__(self: object, other: object) -> object
- __repr__(...)
- __repr__(self: object) -> str
- __ror__(...)
- __ror__(self: object, other: object) -> object
- __rxor__(...)
- __rxor__(self: object, other: object) -> object
- __setstate__(...)
- __setstate__(self: mrpt.pymrpt.mrpt.opengl.TOpenGLFontStyle, state: int) -> None
- __str__ = name(...)
- name(self: handle) -> str
- __xor__(...)
- __xor__(self: object, other: object) -> object
Readonly properties defined here:
- __members__
- name
- name(self: handle) -> str
- value
Data and other attributes defined here:
- FILL = <TOpenGLFontStyle.FILL: 0>
- NICE = <TOpenGLFontStyle.NICE: 2>
- OUTLINE = <TOpenGLFontStyle.OUTLINE: 1>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class TRenderMatrices(pybind11_builtins.pybind11_object) |
|
Rendering state related to the projection and model-view matrices.
Used to store matrices that will be sent to shaders.
The homogeneous coordinates of a rendered point comes from the product
(from right to left) of MODEL, VIEW and PROJECTION matrices:
p = p_matrix * v_matrix * m_matrix * [x y z 1.0]' |
|
- Method resolution order:
- TRenderMatrices
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, arg0: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, : mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> mrpt.pymrpt.mrpt.opengl.TRenderMatrices
C++: mrpt::opengl::TRenderMatrices::operator=(const struct mrpt::opengl::TRenderMatrices &) --> struct mrpt::opengl::TRenderMatrices &
- computeLightProjectionMatrix(...)
- computeLightProjectionMatrix(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, zmin: float, zmax: float, direction: mrpt::math::TPoint3D_<float>) -> None
Updates light_pv
C++: mrpt::opengl::TRenderMatrices::computeLightProjectionMatrix(float, float, const struct mrpt::math::TPoint3D_<float> &) --> void
- computeNoProjectionMatrix(...)
- computeNoProjectionMatrix(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, znear: float, zfar: float) -> None
Especial case: no projection, opengl coordinates are pixels from (0,0)
bottom-left corner.
C++: mrpt::opengl::TRenderMatrices::computeNoProjectionMatrix(float, float) --> void
- computeOrthoProjectionMatrix(...)
- computeOrthoProjectionMatrix(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, left: float, right: float, bottom: float, top: float, znear: float, zfar: float) -> None
Especial case for custom parameters of Orthographic projection.
Equivalent to `p_matrix = ortho(...);`.
Replacement for obsolete: glOrtho()
C++: mrpt::opengl::TRenderMatrices::computeOrthoProjectionMatrix(float, float, float, float, float, float) --> void
- computeProjectionMatrix(...)
- computeProjectionMatrix(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, zmin: float, zmax: float) -> None
Uses is_projective , vw,vh, etc. and computes p_matrix from either:
- pinhole_model if set, or
- FOV, otherwise.
Replacement for obsolete: gluPerspective() and glOrtho()
C++: mrpt::opengl::TRenderMatrices::computeProjectionMatrix(float, float) --> void
- computeViewMatrix(...)
- computeViewMatrix(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> None
Updates v_matrix (and v_matrix_no_translation) using the current
camera position and pointing-to coordinates.
Replacement for deprecated OpenGL gluLookAt().
C++: mrpt::opengl::TRenderMatrices::computeViewMatrix() --> void
- getLastClipZFar(...)
- getLastClipZFar(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> float
C++: mrpt::opengl::TRenderMatrices::getLastClipZFar() const --> float
- getLastClipZNear(...)
- getLastClipZNear(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> float
C++: mrpt::opengl::TRenderMatrices::getLastClipZNear() const --> float
- getLastLightClipZFar(...)
- getLastLightClipZFar(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> float
C++: mrpt::opengl::TRenderMatrices::getLastLightClipZFar() const --> float
- getLastLightClipZNear(...)
- getLastLightClipZNear(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> float
C++: mrpt::opengl::TRenderMatrices::getLastLightClipZNear() const --> float
- matricesSetIdentity(...)
- matricesSetIdentity(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices) -> None
C++: mrpt::opengl::TRenderMatrices::matricesSetIdentity() --> void
- projectPoint(...)
- projectPoint(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, x: float, y: float, z: float, proj_u: float, proj_v: float, proj_z_depth: float) -> None
Computes the normalized coordinates (range=[0,1]) on the current
rendering viewport of a
point with local coordinates (wrt to the current model matrix) of
(x,y,z).
The output proj_z_depth is the real distance from the eye to the point.
C++: mrpt::opengl::TRenderMatrices::projectPoint(float, float, float, float &, float &, float &) const --> void
- projectPointPixels(...)
- projectPointPixels(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, x: float, y: float, z: float, proj_u_px: float, proj_v_px: float, proj_depth: float) -> None
Projects a point from global world coordinates into (u,v) pixel
coordinates.
C++: mrpt::opengl::TRenderMatrices::projectPointPixels(float, float, float, float &, float &, float &) const --> void
- saveToYaml(...)
- saveToYaml(self: mrpt.pymrpt.mrpt.opengl.TRenderMatrices, c: mrpt.pymrpt.mrpt.containers.yaml) -> None
C++: mrpt::opengl::TRenderMatrices::saveToYaml(class mrpt::containers::yaml &) const --> void
Static methods defined here:
- LookAt(...) from builtins.PyCapsule
- LookAt(*args, **kwargs)
Overloaded function.
1. LookAt(lookFrom: mrpt::math::TPoint3D_<double>, lookAt: mrpt::math::TPoint3D_<double>, up: mrpt::math::TPoint3D_<double>) -> mrpt::math::CMatrixFixed<float, 4ul, 4ul>
2. LookAt(lookFrom: mrpt::math::TPoint3D_<double>, lookAt: mrpt::math::TPoint3D_<double>, up: mrpt::math::TPoint3D_<double>, viewWithoutTranslation: mrpt::math::CMatrixFixed<float, 4ul, 4ul>) -> mrpt::math::CMatrixFixed<float, 4ul, 4ul>
Computes the view matrix from a "forward" and an "up" vector.
Equivalent to obsolete gluLookAt() or glm::lookAt().
C++: mrpt::opengl::TRenderMatrices::LookAt(const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &, const struct mrpt::math::TPoint3D_<double> &, class mrpt::math::CMatrixFixed<float, 4, 4> *) --> class mrpt::math::CMatrixFixed<float, 4, 4>
- OrthoProjectionMatrix(...) from builtins.PyCapsule
- OrthoProjectionMatrix(left: float, right: float, bottom: float, top: float, znear: float, zfar: float) -> mrpt::math::CMatrixFixed<float, 4ul, 4ul>
Computes and returns an orthographic projection matrix.
Equivalent to obsolete glOrtho() or glm::ortho().
C++: mrpt::opengl::TRenderMatrices::OrthoProjectionMatrix(float, float, float, float, float, float) --> class mrpt::math::CMatrixFixed<float, 4, 4>
Data descriptors defined here:
- FOV
- azimuth
- elev
- eye
- eyeDistance
- eyeDistance2lightShadowExtension
- initialized
- is1stShadowMapPass
- is_projective
- light_p
- light_pmv
- light_pv
- light_v
- m_matrix
- mv_matrix
- p_matrix
- pinhole_model
- pmv_matrix
- pointing
- up
- v_matrix
- v_matrix_no_translation
- viewport_height
- viewport_width
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class TTriangle(pybind11_builtins.pybind11_object) |
|
A triangle (float coordinates) with RGBA colors (u8) and UV (texture
coordinates) for each vertex. Note that not all the fields must be filled in,
it depends on the consumer of the structure.
The structure is memory packed to 1-byte, to ensure it can be used in GPU
memory vertex arrays without unexpected paddings.
opengl::Scene, CSetOfTexturedTriangles |
|
- Method resolution order:
- TTriangle
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.TTriangle, p: mrpt.pymrpt.mrpt.math.TPolygon3D) -> None
3. __init__(self: mrpt.pymrpt.mrpt.opengl.TTriangle, p1: mrpt::math::TPoint3D_<float>, p2: mrpt::math::TPoint3D_<float>, p3: mrpt::math::TPoint3D_<float>) -> None
4. __init__(self: mrpt.pymrpt.mrpt.opengl.TTriangle, p1: mrpt::math::TPoint3D_<float>, p2: mrpt::math::TPoint3D_<float>, p3: mrpt::math::TPoint3D_<float>, n1: mrpt::math::TPoint3D_<float>, n2: mrpt::math::TPoint3D_<float>, n3: mrpt::math::TPoint3D_<float>) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.TTriangle, arg0: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
- a(...)
- a(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> int
C++: mrpt::opengl::TTriangle::a(size_t) --> unsigned char &
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.TTriangle, : mrpt.pymrpt.mrpt.opengl.TTriangle) -> mrpt.pymrpt.mrpt.opengl.TTriangle
C++: mrpt::opengl::TTriangle::operator=(const struct mrpt::opengl::TTriangle &) --> struct mrpt::opengl::TTriangle &
- b(...)
- b(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> int
C++: mrpt::opengl::TTriangle::b(size_t) --> unsigned char &
- computeNormals(...)
- computeNormals(self: mrpt.pymrpt.mrpt.opengl.TTriangle) -> None
Compute the three normals from the cross-product of "v01 x v02".
Note that using this default normals will not lead to interpolated
lighting in the fragment shaders, since all vertex are equal; a derived
class should use custom, more accurate normals to enable soft lighting.
C++: mrpt::opengl::TTriangle::computeNormals() --> void
- g(...)
- g(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> int
C++: mrpt::opengl::TTriangle::g(size_t) --> unsigned char &
- r(...)
- r(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> int
C++: mrpt::opengl::TTriangle::r(size_t) --> unsigned char &
- readFrom(...)
- readFrom(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: mrpt.pymrpt.mrpt.serialization.CArchive) -> None
C++: mrpt::opengl::TTriangle::readFrom(class mrpt::serialization::CArchive &) --> void
- setColor(...)
- setColor(*args, **kwargs)
Overloaded function.
1. setColor(self: mrpt.pymrpt.mrpt.opengl.TTriangle, c: mrpt.pymrpt.mrpt.img.TColor) -> None
Sets the color of all vertices
C++: mrpt::opengl::TTriangle::setColor(const struct mrpt::img::TColor &) --> void
2. setColor(self: mrpt.pymrpt.mrpt.opengl.TTriangle, c: mrpt.pymrpt.mrpt.img.TColorf) -> None
C++: mrpt::opengl::TTriangle::setColor(const struct mrpt::img::TColorf &) --> void
- u(...)
- u(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> float
C++: mrpt::opengl::TTriangle::u(size_t) --> float &
- v(...)
- v(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> float
C++: mrpt::opengl::TTriangle::v(size_t) --> float &
- vertex(...)
- vertex(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> mrpt::math::TPoint3D_<float>
C++: mrpt::opengl::TTriangle::vertex(size_t) --> struct mrpt::math::TPoint3D_<float> &
- writeTo(...)
- writeTo(self: mrpt.pymrpt.mrpt.opengl.TTriangle, o: mrpt.pymrpt.mrpt.serialization.CArchive) -> None
C++: mrpt::opengl::TTriangle::writeTo(class mrpt::serialization::CArchive &) const --> void
- x(...)
- x(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> float
C++: mrpt::opengl::TTriangle::x(size_t) --> float &
- y(...)
- y(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> float
C++: mrpt::opengl::TTriangle::y(size_t) --> float &
- z(...)
- z(self: mrpt.pymrpt.mrpt.opengl.TTriangle, i: int) -> float
C++: mrpt::opengl::TTriangle::z(size_t) --> float &
Data descriptors defined here:
- vertices
Data and other attributes defined here:
- Vertex = <class 'mrpt.pymrpt.mrpt.opengl.TTriangle.Vertex'>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class Texture(pybind11_builtins.pybind11_object) |
|
Resource management for OpenGL 2D or Cube textures.
The texture is generated when images are assigned via
assignImage2D() or assignCubeImages().
CRenderizableShaderTexturedTriangles |
|
- Method resolution order:
- Texture
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.Texture) -> None
2. __init__(self: mrpt.pymrpt.mrpt.opengl.Texture, arg0: mrpt.pymrpt.mrpt.opengl.Texture) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.Texture, : mrpt.pymrpt.mrpt.opengl.Texture) -> mrpt.pymrpt.mrpt.opengl.Texture
C++: mrpt::opengl::Texture::operator=(const class mrpt::opengl::Texture &) --> class mrpt::opengl::Texture &
- assignCubeImages(...)
- assignCubeImages(*args, **kwargs)
Overloaded function.
1. assignCubeImages(self: mrpt.pymrpt.mrpt.opengl.Texture, imgs: List[mrpt.pymrpt.mrpt.img.CImage[6]]) -> None
2. assignCubeImages(self: mrpt.pymrpt.mrpt.opengl.Texture, imgs: List[mrpt.pymrpt.mrpt.img.CImage[6]], textureUnit: int) -> None
This is how an Cube texture is loaded into this object, and a
texture ID is generated underneath. Valid image formats are 8bit per
channel RGB or RGBA.
Indices of faces in the array follow the numeric ordering of
mrpt::opengl::CUBE_TEXTURE_FACE values.
C++: mrpt::opengl::Texture::assignCubeImages(const struct std::array<class mrpt::img::CImage, 6> &, int) --> void
- assignImage2D(...)
- assignImage2D(*args, **kwargs)
Overloaded function.
1. assignImage2D(self: mrpt.pymrpt.mrpt.opengl.Texture, rgb: mrpt.pymrpt.mrpt.img.CImage, o: mrpt::opengl::Texture::Options) -> None
2. assignImage2D(self: mrpt.pymrpt.mrpt.opengl.Texture, rgb: mrpt.pymrpt.mrpt.img.CImage, o: mrpt::opengl::Texture::Options, textureUnit: int) -> None
This is how an 2D texture image is loaded into this object, and a
texture ID is generated underneath. Valid image formats are 8bit per
channel RGB or RGBA.
C++: mrpt::opengl::Texture::assignImage2D(const class mrpt::img::CImage &, const struct mrpt::opengl::Texture::Options &, int) --> void
3. assignImage2D(self: mrpt.pymrpt.mrpt.opengl.Texture, rgb: mrpt.pymrpt.mrpt.img.CImage, alpha: mrpt.pymrpt.mrpt.img.CImage, o: mrpt::opengl::Texture::Options) -> None
4. assignImage2D(self: mrpt.pymrpt.mrpt.opengl.Texture, rgb: mrpt.pymrpt.mrpt.img.CImage, alpha: mrpt.pymrpt.mrpt.img.CImage, o: mrpt::opengl::Texture::Options, textureUnit: int) -> None
C++: mrpt::opengl::Texture::assignImage2D(const class mrpt::img::CImage &, const class mrpt::img::CImage &, const struct mrpt::opengl::Texture::Options &, int) --> void
- bindAsCubeTexture(...)
- bindAsCubeTexture(self: mrpt.pymrpt.mrpt.opengl.Texture) -> None
Binds the texture to GL_TEXTURE_CUBE_MAP
C++: mrpt::opengl::Texture::bindAsCubeTexture() --> void
- bindAsTexture2D(...)
- bindAsTexture2D(self: mrpt.pymrpt.mrpt.opengl.Texture) -> None
Binds the texture to GL_TEXTURE_2D
C++: mrpt::opengl::Texture::bindAsTexture2D() --> void
- initialized(...)
- initialized(self: mrpt.pymrpt.mrpt.opengl.Texture) -> bool
Returns true if an image has been already assigned and an OpenGL
texture ID was already generated.
C++: mrpt::opengl::Texture::initialized() const --> bool
- textureNameID(...)
- textureNameID(self: mrpt.pymrpt.mrpt.opengl.Texture) -> int
C++: mrpt::opengl::Texture::textureNameID() const --> unsigned int
- textureUnit(...)
- textureUnit(self: mrpt.pymrpt.mrpt.opengl.Texture) -> int
Texture unit = the "i" in GL_TEXTUREi
C++: mrpt::opengl::Texture::textureUnit() const --> int
- unloadTexture(...)
- unloadTexture(self: mrpt.pymrpt.mrpt.opengl.Texture) -> None
C++: mrpt::opengl::Texture::unloadTexture() --> void
Data and other attributes defined here:
- Options = <class 'mrpt.pymrpt.mrpt.opengl.Texture.Options'>
- Options while creating a texture from an image.
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class Viewport(mrpt.pymrpt.mrpt.serialization.CSerializable, mrpt.pymrpt.mrpt.system.CObservable, CTextMessageCapable) |
|
A viewport within a Scene, containing a set of OpenGL objects to
render.
This class has protected constuctor, thus it cannot be created by users.
Use Scene::createViewport instead.
A viewport has these "operation modes":
- Normal (default): It renders the contained objects.
- Cloned: It clones the objects from another viewport. See
- Image mode: It renders an image (e.g. from a video stream) efficiently
using a textued quad. See
In any case, the viewport can be resized to only fit a part of the entire
parent viewport.
There will be always at least one viewport in a Scene named "main".
This class can be observed (see mrpt::system::CObserver) for the following
events (see mrpt::system::mrptEvent):
- mrpt::opengl::mrptEventGLPreRender
- mrpt::opengl::mrptEventGLPostRender
Two directional light sources at infinity are created by default, with
directions (-1,-1,-1) and (1,2,1), respectively.
Lighting parameters are accessible via lightParameters().
Refer to mrpt::opengl::Scene for further details. |
|
- Method resolution order:
- Viewport
- mrpt.pymrpt.mrpt.serialization.CSerializable
- mrpt.pymrpt.mrpt.rtti.CObject
- mrpt.pymrpt.mrpt.system.CObservable
- CTextMessageCapable
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- GetRuntimeClass(...)
- GetRuntimeClass(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::Viewport::GetRuntimeClass() const --> const struct mrpt::rtti::TRuntimeClassId *
- __init__(...)
- __init__(*args, **kwargs)
Overloaded function.
1. __init__(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
doc
2. __init__(self: mrpt.pymrpt.mrpt.opengl.Viewport, arg0: mrpt::opengl::Scene) -> None
doc
3. __init__(self: mrpt.pymrpt.mrpt.opengl.Viewport, parent: mrpt::opengl::Scene, name: str) -> None
4. __init__(self: mrpt.pymrpt.mrpt.opengl.Viewport, arg0: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
5. __init__(self: mrpt.pymrpt.mrpt.opengl.Viewport, arg0: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
- assign(...)
- assign(self: mrpt.pymrpt.mrpt.opengl.Viewport, : mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.opengl.Viewport
C++: mrpt::opengl::Viewport::operator=(const class mrpt::opengl::Viewport &) --> class mrpt::opengl::Viewport &
- clear(...)
- clear(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
Delete all internal obejcts
insert
C++: mrpt::opengl::Viewport::clear() --> void
- clone(...)
- clone(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::Viewport::clone() const --> class mrpt::rtti::CObject *
- empty(...)
- empty(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> bool
C++: mrpt::opengl::Viewport::empty() const --> bool
- enablePolygonNicest(...)
- enablePolygonNicest(*args, **kwargs)
Overloaded function.
1. enablePolygonNicest(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
2. enablePolygonNicest(self: mrpt.pymrpt.mrpt.opengl.Viewport, enable: bool) -> None
Sets glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST) is enabled, or GL_FASTEST
otherwise.
C++: mrpt::opengl::Viewport::enablePolygonNicest(bool) --> void
- enableShadowCasting(...)
- enableShadowCasting(*args, **kwargs)
Overloaded function.
1. enableShadowCasting(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
2. enableShadowCasting(self: mrpt.pymrpt.mrpt.opengl.Viewport, enabled: bool) -> None
3. enableShadowCasting(self: mrpt.pymrpt.mrpt.opengl.Viewport, enabled: bool, SHADOW_MAP_SIZE_X: int) -> None
4. enableShadowCasting(self: mrpt.pymrpt.mrpt.opengl.Viewport, enabled: bool, SHADOW_MAP_SIZE_X: int, SHADOW_MAP_SIZE_Y: int) -> None
Enables or disables rendering of shadows cast by the unidirectional
light.
Set to true to enable shadow casting
(default at ctor=false).
Width of the shadow cast map (1st pass of
rendering with shadows). Larger values are slower but gives
more precise shadows. Default=2048x2048.
Zero means do not change.
Like SHADOW_MAP_SIZE_X but defines the height.
C++: mrpt::opengl::Viewport::enableShadowCasting(bool, unsigned int, unsigned int) --> void
- get3DRayForPixelCoord(...)
- get3DRayForPixelCoord(*args, **kwargs)
Overloaded function.
1. get3DRayForPixelCoord(self: mrpt.pymrpt.mrpt.opengl.Viewport, x_coord: float, y_coord: float, out_ray: mrpt::math::TLine3D) -> None
2. get3DRayForPixelCoord(self: mrpt.pymrpt.mrpt.opengl.Viewport, x_coord: float, y_coord: float, out_ray: mrpt::math::TLine3D, out_cameraPose: mrpt.pymrpt.mrpt.poses.CPose3D) -> None
Compute the 3D ray corresponding to a given pixel; this can be used to
allow the user to pick and select 3D objects by clicking onto the 2D
image.
Horizontal coordinate with the usual meaning (0:left of
the viewport, W-1: right border).
Horizontal coordinate with the usual meaning (0:top of
the viewport, H-1: right border).
If not nullptr, will have the camera 3D pose as a
mrpt::poses::CPose3D. See also
(x,y) refer to VIEWPORT coordinates. Take into account this when
viewports do not extend to the whole window size.
x and y are double instead of integers to allow sub-pixel
precision.
getCurrentCameraPose
C++: mrpt::opengl::Viewport::get3DRayForPixelCoord(const double, const double, struct mrpt::math::TLine3D &, class mrpt::poses::CPose3D *) const --> void
- getBorderColor(...)
- getBorderColor(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.img.TColor
C++: mrpt::opengl::Viewport::getBorderColor() const --> const struct mrpt::img::TColor &
- getBorderSize(...)
- getBorderSize(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> int
C++: mrpt::opengl::Viewport::getBorderSize() const --> unsigned int
- getBoundingBox(...)
- getBoundingBox(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.math.TBoundingBox_double_t
C++: mrpt::opengl::Viewport::getBoundingBox() const --> struct mrpt::math::TBoundingBox_<double>
- getByName(...)
- getByName(self: mrpt.pymrpt.mrpt.opengl.Viewport, str: str) -> mrpt.pymrpt.mrpt.opengl.CRenderizable
Returns the first object with a given name, or nullptr if not found.
C++: mrpt::opengl::Viewport::getByName(const std::string &) --> class std::shared_ptr<class mrpt::opengl::CRenderizable>
- getCamera(...)
- getCamera(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.opengl.CCamera
Get a reference to the camera associated with this viewport.
C++: mrpt::opengl::Viewport::getCamera() --> class mrpt::opengl::CCamera &
- getCurrentCameraPose(...)
- getCurrentCameraPose(*args, **kwargs)
Overloaded function.
1. getCurrentCameraPose(self: mrpt.pymrpt.mrpt.opengl.Viewport, out_cameraPose: mrpt.pymrpt.mrpt.poses.CPose3D) -> None
Compute the current 3D camera pose: +Z points forward, +X to the right,
+Y down.
get3DRayForPixelCoord
C++: mrpt::opengl::Viewport::getCurrentCameraPose(class mrpt::poses::CPose3D &) const --> void
2. getCurrentCameraPose(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.poses.CPose3D
C++: mrpt::opengl::Viewport::getCurrentCameraPose() const --> class mrpt::poses::CPose3D
- getCustomBackgroundColor(...)
- getCustomBackgroundColor(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.img.TColorf
C++: mrpt::opengl::Viewport::getCustomBackgroundColor() const --> struct mrpt::img::TColorf
- getLightShadowClipDistances(...)
- getLightShadowClipDistances(self: mrpt.pymrpt.mrpt.opengl.Viewport, clip_min: float, clip_max: float) -> None
C++: mrpt::opengl::Viewport::getLightShadowClipDistances(float &, float &) const --> void
- getName(...)
- getName(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> str
Returns the name of the viewport
C++: mrpt::opengl::Viewport::getName() --> std::string
- getRenderMatrices(...)
- getRenderMatrices(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.opengl.TRenderMatrices
Returns a copy of the latest render matrices structure.
C++: mrpt::opengl::Viewport::getRenderMatrices() const --> struct mrpt::opengl::TRenderMatrices
- getViewportClipDistances(...)
- getViewportClipDistances(self: mrpt.pymrpt.mrpt.opengl.Viewport, clip_min: float, clip_max: float) -> None
Get the current min/max clip depth distances of the rendering frustum
(default: 0.1 - 1000)
setViewportClipDistances
C++: mrpt::opengl::Viewport::getViewportClipDistances(float &, float &) const --> void
- getViewportPosition(...)
- getViewportPosition(self: mrpt.pymrpt.mrpt.opengl.Viewport, x: float, y: float, width: float, height: float) -> None
Get the current viewport position and dimension on the rendering window.
X & Y coordinates here can have two interpretations:
- If in the range [0,1], they are factors with respect to the actual
window sizes (i.e. width=1 means the entire width of the rendering
window).
- If >1, they are interpreted as pixels.
(x,y) specify the lower left corner of the viewport rectangle.
setViewportPosition
C++: mrpt::opengl::Viewport::getViewportPosition(double &, double &, double &, double &) --> void
- insert(...)
- insert(self: mrpt.pymrpt.mrpt.opengl.Viewport, newObject: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Insert a new object into the list.
The object MUST NOT be deleted, it will be deleted automatically by
this object when not required anymore.
C++: mrpt::opengl::Viewport::insert(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &) --> void
- isImageViewMode(...)
- isImageViewMode(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> bool
Returns true if setImageView() has been called on this viewport
C++: mrpt::opengl::Viewport::isImageViewMode() const --> bool
- isPolygonNicestEnabled(...)
- isPolygonNicestEnabled(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> bool
C++: mrpt::opengl::Viewport::isPolygonNicestEnabled() const --> bool
- isShadowCastingEnabled(...)
- isShadowCastingEnabled(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> bool
C++: mrpt::opengl::Viewport::isShadowCastingEnabled() const --> bool
- isTransparent(...)
- isTransparent(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> bool
Return whether the viewport will be rendered transparent over previous
viewports.
C++: mrpt::opengl::Viewport::isTransparent() --> bool
- lightParameters(...)
- lightParameters(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> mrpt.pymrpt.mrpt.opengl.TLightParameters
C++: mrpt::opengl::Viewport::lightParameters() --> struct mrpt::opengl::TLightParameters &
- loadDefaultShaders(...)
- loadDefaultShaders(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
Load all MPRT predefined shader programs into m_shaders
C++: mrpt::opengl::Viewport::loadDefaultShaders() const --> void
- removeObject(...)
- removeObject(self: mrpt.pymrpt.mrpt.opengl.Viewport, obj: mrpt.pymrpt.mrpt.opengl.CRenderizable) -> None
Removes the given object from the scene (it also deletes the object to
free its memory).
C++: mrpt::opengl::Viewport::removeObject(const class std::shared_ptr<class mrpt::opengl::CRenderizable> &) --> void
- render(...)
- render(*args, **kwargs)
Overloaded function.
1. render(self: mrpt.pymrpt.mrpt.opengl.Viewport, render_width: int, render_height: int) -> None
2. render(self: mrpt.pymrpt.mrpt.opengl.Viewport, render_width: int, render_height: int, render_offset_x: int) -> None
3. render(self: mrpt.pymrpt.mrpt.opengl.Viewport, render_width: int, render_height: int, render_offset_x: int, render_offset_y: int) -> None
4. render(self: mrpt.pymrpt.mrpt.opengl.Viewport, render_width: int, render_height: int, render_offset_x: int, render_offset_y: int, forceThisCamera: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
Render the objects in this viewport (called from Scene)
C++: mrpt::opengl::Viewport::render(const int, const int, const int, const int, const class mrpt::opengl::CCamera *) const --> void
- resetCloneView(...)
- resetCloneView(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
Reset the viewport to normal mode: rendering its own objects.
setCloneView, setNormalMode
C++: mrpt::opengl::Viewport::resetCloneView() --> void
- setBorderColor(...)
- setBorderColor(self: mrpt.pymrpt.mrpt.opengl.Viewport, c: mrpt.pymrpt.mrpt.img.TColor) -> None
C++: mrpt::opengl::Viewport::setBorderColor(const struct mrpt::img::TColor &) --> void
- setBorderSize(...)
- setBorderSize(self: mrpt.pymrpt.mrpt.opengl.Viewport, lineWidth: int) -> None
Set the border size ("frame") of the viewport (default=0)
C++: mrpt::opengl::Viewport::setBorderSize(unsigned int) --> void
- setCloneCamera(...)
- setCloneCamera(self: mrpt.pymrpt.mrpt.opengl.Viewport, enable: bool) -> None
If set to true, and setCloneView() has been called, this viewport will
be rendered using the camera of the cloned viewport.
C++: mrpt::opengl::Viewport::setCloneCamera(bool) --> void
- setCloneView(...)
- setCloneView(self: mrpt.pymrpt.mrpt.opengl.Viewport, clonedViewport: str) -> None
Set this viewport as a clone of some other viewport, given its name - as
a side effect, current list of internal OpenGL objects is cleared.
By default, only the objects are cloned, not the camera. See
resetCloneView
C++: mrpt::opengl::Viewport::setCloneView(const std::string &) --> void
- setClonedCameraFrom(...)
- setClonedCameraFrom(self: mrpt.pymrpt.mrpt.opengl.Viewport, viewPortName: str) -> None
Use the camera of another viewport.
Note this works even for viewports not in "clone" mode, so you can
render different scenes but using the same camera.
C++: mrpt::opengl::Viewport::setClonedCameraFrom(const std::string &) --> void
- setCurrentCameraFromPose(...)
- setCurrentCameraFromPose(self: mrpt.pymrpt.mrpt.opengl.Viewport, p: mrpt.pymrpt.mrpt.poses.CPose3D) -> None
Changes the point of view of the camera, from a given pose.
getCurrentCameraPose
C++: mrpt::opengl::Viewport::setCurrentCameraFromPose(class mrpt::poses::CPose3D &) --> void
- setCustomBackgroundColor(...)
- setCustomBackgroundColor(self: mrpt.pymrpt.mrpt.opengl.Viewport, color: mrpt.pymrpt.mrpt.img.TColorf) -> None
Defines the viewport background color
C++: mrpt::opengl::Viewport::setCustomBackgroundColor(const struct mrpt::img::TColorf &) --> void
- setImageView(...)
- setImageView(self: mrpt.pymrpt.mrpt.opengl.Viewport, img: mrpt.pymrpt.mrpt.img.CImage) -> None
Set this viewport into "image view"-mode, where an image is efficiently
drawn (fitting the viewport area) using an OpenGL textured quad.
Call this method with the new image to update the displayed image (but
recall to first lock the parent openglscene's critical section, then do
the update, then release the lock, and then issue a window repaint).
Internally, the texture is drawn using a mrpt::opengl::CTexturedPlane
The viewport can be reverted to behave like a normal viewport by
calling setNormalMode()
C++: mrpt::opengl::Viewport::setImageView(const class mrpt::img::CImage &) --> void
- setLightShadowClipDistances(...)
- setLightShadowClipDistances(self: mrpt.pymrpt.mrpt.opengl.Viewport, clip_min: float, clip_max: float) -> None
C++: mrpt::opengl::Viewport::setLightShadowClipDistances(const float, const float) --> void
- setNormalMode(...)
- setNormalMode(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> None
Resets the viewport to a normal 3D viewport
setCloneView,
setImageView
C++: mrpt::opengl::Viewport::setNormalMode() --> void
- setTransparent(...)
- setTransparent(self: mrpt.pymrpt.mrpt.opengl.Viewport, trans: bool) -> None
Set the transparency, that is, whether the viewport will be rendered
transparent over previous viewports (default=false).
C++: mrpt::opengl::Viewport::setTransparent(bool) --> void
- setViewportClipDistances(...)
- setViewportClipDistances(self: mrpt.pymrpt.mrpt.opengl.Viewport, clip_min: float, clip_max: float) -> None
Set the min/max clip depth distances of the rendering frustum (default:
0.1 - 1000)
getViewportClipDistances
C++: mrpt::opengl::Viewport::setViewportClipDistances(const float, const float) --> void
- setViewportPosition(...)
- setViewportPosition(self: mrpt.pymrpt.mrpt.opengl.Viewport, x: float, y: float, width: float, height: float) -> None
Change the viewport position and dimension on the rendering window.
X & Y coordinates here can have two interpretations:
- If in the range [0,1], they are factors with respect to the actual
window sizes (i.e. width=1 means the entire width of the rendering
window).
- If >1, they are interpreted as pixels.
width & height can be interpreted as:
- If >1, they are the size of the viewport in that dimension, in
pixels.
- If in [0,1], they are the size of the viewport in that dimension,
in
a factor of the width/height.
- If in [-1,0[, the size is computed such as the right/top border
ends
up in the given coordinate, interpreted as a factor (e.g. -1: up to the
end of the viewport, -0.5: up to the middle of it).
- If <-1 the size is computed such as the right/top border ends up
in
the given absolute coordinate (e.g. -200: up to the row/column 200px).
(x,y) specify the lower left corner of the viewport rectangle.
getViewportPosition
C++: mrpt::opengl::Viewport::setViewportPosition(const double, const double, const double, const double) --> void
- size(...)
- size(self: mrpt.pymrpt.mrpt.opengl.Viewport) -> int
Number of objects contained.
C++: mrpt::opengl::Viewport::size() const --> size_t
- updateMatricesFromCamera(...)
- updateMatricesFromCamera(self: mrpt.pymrpt.mrpt.opengl.Viewport, myCamera: mrpt.pymrpt.mrpt.opengl.CCamera) -> None
myCamera must come from internalResolveActiveCamera()
C++: mrpt::opengl::Viewport::updateMatricesFromCamera(const class mrpt::opengl::CCamera &) const --> void
Static methods defined here:
- CreateObject(...) from builtins.PyCapsule
- CreateObject() -> mrpt.pymrpt.mrpt.rtti.CObject
C++: mrpt::opengl::Viewport::CreateObject() --> class std::shared_ptr<class mrpt::rtti::CObject>
- GetRuntimeClassIdStatic(...) from builtins.PyCapsule
- GetRuntimeClassIdStatic() -> mrpt.pymrpt.mrpt.rtti.TRuntimeClassId
C++: mrpt::opengl::Viewport::GetRuntimeClassIdStatic() --> const struct mrpt::rtti::TRuntimeClassId &
Methods inherited from mrpt.pymrpt.mrpt.rtti.CObject:
- duplicateGetSmartPtr(...)
- duplicateGetSmartPtr(self: mrpt.pymrpt.mrpt.rtti.CObject) -> mrpt.pymrpt.mrpt.rtti.CObject
Makes a deep copy of the object and returns a smart pointer to it
C++: mrpt::rtti::CObject::duplicateGetSmartPtr() const --> class std::shared_ptr<class mrpt::rtti::CObject>
Methods inherited from CTextMessageCapable:
- addTextMessage(...)
- addTextMessage(*args, **kwargs)
Overloaded function.
1. addTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, x_frac: float, y_frac: float, text: str) -> None
2. addTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, x_frac: float, y_frac: float, text: str, unique_index: int) -> None
3. addTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, x_frac: float, y_frac: float, text: str, unique_index: int, fontParams: mrpt.pymrpt.mrpt.opengl.TFontParams) -> None
Add 2D text messages overlapped to the 3D rendered scene. The string
will remain displayed in the 3D window
until it's changed with subsequent calls to this same method, or all
the texts are cleared with clearTextMessages().
The X position, interpreted as absolute pixels from the left
if X>=1, absolute pixels from the left if X<0 or as a width factor if in
the range [0,1[.
The Y position, interpreted as absolute pixels from the bottom
if Y>=1, absolute pixels from the top if Y<0 or as a height factor if in
the range [0,1[.
The text string to display.
The text color. For example: TColorf(1.0,1.0,1.0)
An "index" for this text message, so that
subsequent calls with the same index will overwrite this text message
instead of creating new ones.
You'll need to refresh the display manually with forceRepaint().
clearTextMessages, updateTextMessage
C++: mrpt::opengl::CTextMessageCapable::addTextMessage(const double, const double, const std::string &, const unsigned long, const struct mrpt::opengl::TFontParams &) --> void
- clearTextMessages(...)
- clearTextMessages(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> None
C++: mrpt::opengl::CTextMessageCapable::clearTextMessages() --> void
- getTextMessages(...)
- getTextMessages(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable) -> mrpt::opengl::CTextMessageCapable::TListTextMessages
C++: mrpt::opengl::CTextMessageCapable::getTextMessages() const --> const struct mrpt::opengl::CTextMessageCapable::TListTextMessages &
- updateTextMessage(...)
- updateTextMessage(self: mrpt.pymrpt.mrpt.opengl.CTextMessageCapable, unique_index: int, text: str) -> bool
Just updates the text of a given text message, without touching the
other parameters.
false if given ID doesn't exist.
C++: mrpt::opengl::CTextMessageCapable::updateTextMessage(size_t, const std::string &) --> bool
Data and other attributes inherited from CTextMessageCapable:
- DataPerText = <class 'mrpt.pymrpt.mrpt.opengl.CTextMessageCapable.DataPerText'>
- TListTextMessages = <class 'mrpt.pymrpt.mrpt.opengl.CTextMessageCapable.TListTextMessages'>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
class predefined_voxel_sets_t(pybind11_builtins.pybind11_object) |
| |
- Method resolution order:
- predefined_voxel_sets_t
- pybind11_builtins.pybind11_object
- builtins.object
Methods defined here:
- __and__(...)
- __and__(self: object, other: object) -> object
- __eq__(...)
- __eq__(self: object, other: object) -> bool
- __ge__(...)
- __ge__(self: object, other: object) -> bool
- __getstate__(...)
- __getstate__(self: object) -> int
- __gt__(...)
- __gt__(self: object, other: object) -> bool
- __hash__(...)
- __hash__(self: object) -> int
- __index__(...)
- __index__(self: mrpt.pymrpt.mrpt.opengl.predefined_voxel_sets_t) -> int
- __init__(...)
- __init__(self: mrpt.pymrpt.mrpt.opengl.predefined_voxel_sets_t, value: int) -> None
- __int__(...)
- __int__(self: mrpt.pymrpt.mrpt.opengl.predefined_voxel_sets_t) -> int
- __invert__(...)
- __invert__(self: object) -> object
- __le__(...)
- __le__(self: object, other: object) -> bool
- __lt__(...)
- __lt__(self: object, other: object) -> bool
- __ne__(...)
- __ne__(self: object, other: object) -> bool
- __or__(...)
- __or__(self: object, other: object) -> object
- __rand__(...)
- __rand__(self: object, other: object) -> object
- __repr__(...)
- __repr__(self: object) -> str
- __ror__(...)
- __ror__(self: object, other: object) -> object
- __rxor__(...)
- __rxor__(self: object, other: object) -> object
- __setstate__(...)
- __setstate__(self: mrpt.pymrpt.mrpt.opengl.predefined_voxel_sets_t, state: int) -> None
- __str__ = name(...)
- name(self: handle) -> str
- __xor__(...)
- __xor__(self: object, other: object) -> object
Readonly properties defined here:
- __members__
- name
- name(self: handle) -> str
- value
Data and other attributes defined here:
- VOXEL_SET_FREESPACE = <predefined_voxel_sets_t.VOXEL_SET_FREESPACE: 1>
- VOXEL_SET_OCCUPIED = <predefined_voxel_sets_t.VOXEL_SET_OCCUPIED: 0>
Static methods inherited from pybind11_builtins.pybind11_object:
- __new__(*args, **kwargs) from pybind11_builtins.pybind11_type
- Create and return a new object. See help(type) for accurate signature.
|
|