Others
Rgb
Rgba
ccScalarField
See also
C++: ccScalarField
- class pycc.ccScalarField
Bases:
ScalarField
- class Range
Bases:
pybind11_object
- inbound(self: pycc.ccScalarField.Range, value: float) float
- isInRange(self: pycc.ccScalarField.Range, value: float) bool
- isInbound(self: pycc.ccScalarField.Range, value: float) bool
- max(self: pycc.ccScalarField.Range) float
- maxRange(self: pycc.ccScalarField.Range) float
- min(self: pycc.ccScalarField.Range) float
- range(self: pycc.ccScalarField.Range) float
- setBounds(self: pycc.ccScalarField.Range, minVal: float, maxVal: float, resetStartStop: bool = True) None
- setStart(self: pycc.ccScalarField.Range, value: float) None
- setStop(self: pycc.ccScalarField.Range, value: float) None
- start(self: pycc.ccScalarField.Range) float
- stop(self: pycc.ccScalarField.Range) float
- alwaysShowZero(self: pycc.ccScalarField, state: bool) None
- areNaNValuesShownInGrey(self: pycc.ccScalarField) bool
- displayRange(self: pycc.ccScalarField) pycc.ccScalarField.Range
- getColor(self: pycc.ccScalarField, value: float) pycc.Rgb
- getColorRampSteps(self: pycc.ccScalarField) int
- getColorScale(self: pycc.ccScalarField) QSharedPointer<ccColorScale>
- getGlobalShift(self: pycc.ccScalarField) float
- getHistogram(self: pycc.ccScalarField) list[int]
- getModificationFlag(self: pycc.ccScalarField) bool
- getValueColor(self: pycc.ccScalarField, index: int) pycc.Rgb
- importParametersFrom(self: pycc.ccScalarField, sf: pycc.ccScalarField) None
- isZeroAlwaysShown(self: pycc.ccScalarField) bool
- logSaturationRange(self: pycc.ccScalarField) pycc.ccScalarField.Range
- logScale(self: pycc.ccScalarField) bool
- mayHaveHiddenValues(self: pycc.ccScalarField) bool
- saturationRange(self: pycc.ccScalarField) pycc.ccScalarField.Range
- setColorRampSteps(self: pycc.ccScalarField, steps: int) None
- setColorScale(self: pycc.ccScalarField, scale: QSharedPointer<ccColorScale>) None
- setGlobalShift(self: pycc.ccScalarField, state: float) None
- setLogScale(self: pycc.ccScalarField, state: bool) None
- setMaxDisplayed(self: pycc.ccScalarField, value: float) None
- setMinDisplayed(self: pycc.ccScalarField, value: float) None
- setModificationFlag(self: pycc.ccScalarField, state: bool) None
- setSaturationStart(self: pycc.ccScalarField, value: float) None
- setSaturationStop(self: pycc.ccScalarField, value: float) None
- setSymmetricalScale(self: pycc.ccScalarField, state: bool) None
- showNaNValuesInGrey(self: pycc.ccScalarField, state: bool) None
- symmetricalScale(self: pycc.ccScalarField) bool
cc2DLabel
- class pycc.cc2DLabel
Bases:
ccHObject
,ccInteractor
- class PickedPoint
Bases:
pybind11_object
- cloudOrVertices(self: pycc.cc2DLabel.PickedPoint) ccGenericPointCloud
- entity(self: pycc.cc2DLabel.PickedPoint) pycc.ccHObject
- getPointPosition(self: pycc.cc2DLabel.PickedPoint) cccorelib.CCVector3
- getUniqueID(self: pycc.cc2DLabel.PickedPoint) int
- itemTitle(self: pycc.cc2DLabel.PickedPoint) QString
- prefix(self: pycc.cc2DLabel.PickedPoint, arg0: str) QString
- property entityCenterPoint
- property index
- property pos2D
- property uv
- addPickedPoint(*args, **kwargs)
Overloaded function.
addPickedPoint(self: pycc.cc2DLabel, cloud: ccGenericPointCloud, pointIndex: int, entityCenter: bool = False) -> bool
addPickedPoint(self: pycc.cc2DLabel, cloud: pycc.ccGenericMesh, triangleIndex: int, uv: cccorelib.CCVector2d, entityCenter: bool = False) -> bool
addPickedPoint(self: pycc.cc2DLabel, pp: pycc.cc2DLabel.PickedPoint) -> bool
- clear(self: pycc.cc2DLabel, ignoreDependencies: bool = False) None
- displayPointLegend(self: pycc.cc2DLabel, state: bool) None
- getLabelContent(self: pycc.cc2DLabel, precision: int) QStringList
- getPickedPoint(*args, **kwargs)
Overloaded function.
getPickedPoint(self: pycc.cc2DLabel, index: int) -> pycc.cc2DLabel.PickedPoint
getPickedPoint(self: pycc.cc2DLabel, index: int) -> pycc.cc2DLabel.PickedPoint
- getPosition(self: pycc.cc2DLabel) tuple
- getRawName(self: pycc.cc2DLabel) QString
- getTitle(self: pycc.cc2DLabel, precision: int) QString
- isCollapsed(self: pycc.cc2DLabel) bool
- isDisplayedIn2D(self: pycc.cc2DLabel) bool
- isPointLegendDisplayed(self: pycc.cc2DLabel) bool
- setCollapsed(self: pycc.cc2DLabel, state: bool) None
- setDisplayedIn2D(self: pycc.cc2DLabel, state: bool) None
- setPosition(self: pycc.cc2DLabel, x: float, y: float) None
- size(self: pycc.cc2DLabel) int
ccBBox
- class pycc.ccBBox
Bases:
BoundingBox
- draw(self: pycc.ccBBox, context: ccGLDrawContext, col: pycc.Rgb) None
ccSensor
See also
C++: ccSensor
- class pycc.ccSensor
Bases:
ccHObject
- addPosition(self: pycc.ccSensor, trans: pycc.ccGLMatrix, index: float) bool
- applyViewport(self: pycc.ccSensor, win: ccGenericGLDisplay = None) bool
- checkVisibility(self: pycc.ccSensor, P: cccorelib.CCVector3) int
- getAbsoluteTransformation(self: pycc.ccSensor, trans: pycc.ccIndexedTransformation, index: float) bool
- getActiveAbsoluteCenter(self: pycc.ccSensor, vec: cccorelib.CCVector3) bool
- getActiveAbsoluteRotation(self: pycc.ccSensor, rotation: pycc.ccGLMatrix) bool
- getActiveAbsoluteTransformation(self: pycc.ccSensor, trans: pycc.ccIndexedTransformation) bool
- getActiveIndex(self: pycc.ccSensor) float
- getGraphicScale(self: pycc.ccSensor) float
- getIndexBounds(self: pycc.ccSensor) tuple
- getRigidTransformation(self: pycc.ccSensor) pycc.ccGLMatrix
- setActiveIndex(self: pycc.ccSensor, index: float) None
- setGraphicScale(self: pycc.ccSensor, scale: float) None
- setRigidTransformation(self: pycc.ccSensor, mat: pycc.ccGLMatrix) None
ccGBLSensor
See also
C++: ccGBLSensor
- class pycc.ccGBLSensor
Bases:
ccSensor
- class ROTATION_ORDER
Bases:
pybind11_object
Members:
YAW_THEN_PITCH
PITCH_THEN_YAW
- PITCH_THEN_YAW = <ROTATION_ORDER.PITCH_THEN_YAW: 1>
- YAW_THEN_PITCH = <ROTATION_ORDER.YAW_THEN_PITCH: 0>
- property name
- property value
- static GetErrorString(errorCode: int) QString
- computeAutoParameters(self: pycc.ccGBLSensor, theCloud: cccorelib.GenericCloud) bool
- getMaxPitch(self: pycc.ccGBLSensor) float
- getMaxYaw(self: pycc.ccGBLSensor) float
- getMinPitch(self: pycc.ccGBLSensor) float
- getMinYaw(self: pycc.ccGBLSensor) float
- getPitchStep(self: pycc.ccGBLSensor) float
- getRotationOrder(self: pycc.ccGBLSensor) pycc.ccGBLSensor.ROTATION_ORDER
- getSensorRange(self: pycc.ccGBLSensor) float
- getUncertainty(self: pycc.ccGBLSensor) float
- getYawStep(self: pycc.ccGBLSensor) float
- pitchIsShifted(self: pycc.ccGBLSensor) bool
- projectPoint(self: pycc.ccGBLSensor, sourcePoint: cccorelib.CCVector3, posIndex: float = 0) tuple
- setPitchRange(self: pycc.ccGBLSensor, minPhi: float, maxPhi: float) None
- setPitchStep(self: pycc.ccGBLSensor, dPhi: float) None
- setRotationOrder(self: pycc.ccGBLSensor, rotOrder: pycc.ccGBLSensor.ROTATION_ORDER) None
- setSensorRange(self: pycc.ccGBLSensor, range: float) None
- setUncertainty(self: pycc.ccGBLSensor, u: float) None
- setYawRange(self: pycc.ccGBLSensor, minTheta: float, maxTheta: float) None
- setYawStep(self: pycc.ccGBLSensor, dTheta: float) None
- yawIsShifted(self: pycc.ccGBLSensor) bool
- PITCH_THEN_YAW = <ROTATION_ORDER.PITCH_THEN_YAW: 1>
- YAW_THEN_PITCH = <ROTATION_ORDER.YAW_THEN_PITCH: 0>
ccCameraSensor
- class pycc.ccCameraSensor
Bases:
ccSensor
- class BrownDistortionParameters
Bases:
LensDistortionParameters
- property K_BrownParams
- property P_BrownParams
- property linearDisparityParams
- property principalPointOffset
- class DistortionModel
Bases:
pybind11_object
Members:
NO_DISTORTION_MODEL
SIMPLE_RADIAL_DISTORTION
BROWN_DISTORTION
EXTENDED_RADIAL_DISTORTION
- BROWN_DISTORTION = <DistortionModel.BROWN_DISTORTION: 2>
- EXTENDED_RADIAL_DISTORTION = <DistortionModel.EXTENDED_RADIAL_DISTORTION: 3>
- NO_DISTORTION_MODEL = <DistortionModel.NO_DISTORTION_MODEL: 0>
- SIMPLE_RADIAL_DISTORTION = <DistortionModel.SIMPLE_RADIAL_DISTORTION: 1>
- property name
- property value
- class ExtendedRadialDistortionParameters
Bases:
RadialDistortionParameters
- property k3
- class FrustumInformation
Bases:
pybind11_object
- initFrustumCorners(self: pycc.ccCameraSensor.FrustumInformation) bool
- initFrustumHull(self: pycc.ccCameraSensor.FrustumInformation) bool
- property center
- property drawFrustum
- property drawSidePlanes
- property frustumCorners
- property frustumHull
- property isComputed
- class IntrinsicParameters
Bases:
pybind11_object
- static GetKinectDefaults(params: pycc.ccCameraSensor.IntrinsicParameters) None
- horizFocal_pix(self: pycc.ccCameraSensor.IntrinsicParameters) float
- property arrayHeight
- property arrayWidth
- property pixelSize_mm
- property skew
- property vFOV_rad
- property vertFocal_pix
- property zFar_mm
- property zNear_mm
- class LensDistortionParameters
Bases:
pybind11_object
- class RadialDistortionParameters
Bases:
LensDistortionParameters
- property k1
- property k2
- getHorizFocal_pix(*args, **kwargs)
Overloaded function.
getHorizFocal_pix(self: pycc.ccCameraSensor) -> float
getHorizFocal_pix(self: pycc.ccCameraSensor) -> float
- getIntrinsicParameters(*args, **kwargs)
Overloaded function.
getIntrinsicParameters(self: pycc.ccCameraSensor) -> pycc.ccCameraSensor.IntrinsicParameters
getIntrinsicParameters(self: pycc.ccCameraSensor) -> pycc.ccCameraSensor.LensDistortionParameters
- getVerticalFov_rad(self: pycc.ccCameraSensor) float
- setIntrinsicParameters(self: pycc.ccCameraSensor, params: pycc.ccCameraSensor.IntrinsicParameters) None
- setVertFocal_pix(self: pycc.ccCameraSensor, vertFocal_pix: float) None
- setVerticalFov_rad(self: pycc.ccCameraSensor, fov_rad: float) None
- BROWN_DISTORTION = <DistortionModel.BROWN_DISTORTION: 2>
- EXTENDED_RADIAL_DISTORTION = <DistortionModel.EXTENDED_RADIAL_DISTORTION: 3>
- NO_DISTORTION_MODEL = <DistortionModel.NO_DISTORTION_MODEL: 0>
- SIMPLE_RADIAL_DISTORTION = <DistortionModel.SIMPLE_RADIAL_DISTORTION: 1>
ccColorScaleElement
See also
C++: ccColorScaleElement
- class pycc.ccColorScaleElement
Bases:
pybind11_object
- static IsSmaller(e1: pycc.ccColorScaleElement, e2: pycc.ccColorScaleElement) bool
- getColor(self: pycc.ccColorScaleElement) ccinternals.QColor
- getRelativePos(self: pycc.ccColorScaleElement) float
- setColor(self: pycc.ccColorScaleElement, color: ccinternals.QColor) None
- setRelativePos(self: pycc.ccColorScaleElement, pos: float) None
ccColorScale
See also
C++: ccColorScale
- class pycc.ccColorScale
Bases:
pybind11_object
Bases:
pybind11_object
- static LoadFromXML(filename: QString) QSharedPointer<ccColorScale>
- clear(self: pycc.ccColorScale) None
- customLabels(*args, **kwargs)
Overloaded function.
customLabels(self: pycc.ccColorScale) -> set[pycc.ccColorScale.Label]
customLabels(self: pycc.ccColorScale) -> set[pycc.ccColorScale.Label]
- generateNewUuid(self: pycc.ccColorScale) None
- getAbsoluteBoundaries(self: pycc.ccColorScale) tuple
- getColorByIndex(self: pycc.ccColorScale, index: int) pycc.Rgb
- getColorByRelativePos(*args, **kwargs)
Overloaded function.
getColorByRelativePos(self: pycc.ccColorScale, relativePos: float, outOfRangeColor: pycc.Rgb = None) -> pycc.Rgb
getColorByRelativePos(self: pycc.ccColorScale, relativePos: float, steps: int, outOfRangeColor: pycc.Rgb = None) -> pycc.Rgb
- getColorByValue(self: pycc.ccColorScale, value: float, outOfRangeColor: pycc.Rgb = None) pycc.Rgb
- getName(self: pycc.ccColorScale) QString
- getRelativePosition(self: pycc.ccColorScale, value: float) float
- getUuid(self: pycc.ccColorScale) QString
- insert(self: pycc.ccColorScale, step: pycc.ccColorScaleElement, autoUpdate: bool = True) None
- isLocked(self: pycc.ccColorScale) bool
- isRelative(self: pycc.ccColorScale) bool
- remove(self: pycc.ccColorScale, index: int, autoUpdate: bool = True) None
- saveAsXML(self: pycc.ccColorScale, filename: QString) bool
- setAbsolute(*args, **kwargs)
Overloaded function.
setAbsolute(self: pycc.ccColorScale, minVal: float, maxVal: float) -> None
setAbsolute(self: pycc.ccColorScale, minVal: float, maxVal: float) -> None
- setCustomLabels(self: pycc.ccColorScale, labels: set[ccColorScale::Label]) None
- setLocked(self: pycc.ccColorScale, state: bool) None
- setName(self: pycc.ccColorScale, name: QString) None
- setRelative(self: pycc.ccColorScale) None
- setUuid(self: pycc.ccColorScale, uuid: QString) None
- step(self: pycc.ccColorScale, index: int) pycc.ccColorScaleElement
- stepCount(self: pycc.ccColorScale) int
- update(self: pycc.ccColorScale) None
- property DEFAULT_STEPS
- property MAX_STEPS
- property MIN_STEPS
ccColorScalesManager
See also
C++: ccColorScalesManager
- class pycc.ccColorScalesManager
Bases:
pybind11_object
- class DEFAULT_SCALES
Bases:
pybind11_object
Members:
BGYR
GREY
BWR
RY
RW
ABS_NORM_GREY
HSV_360_DEG
VERTEX_QUALITY
DIP_BRYW
DIP_DIR_REPEAT
VIRIDIS
BROWN_YELLOW
YELLOW_BROWN
TOPO_LANDSERF
HIGH_CONTRAST
- ABS_NORM_GREY = <DEFAULT_SCALES.ABS_NORM_GREY: 5>
- BGYR = <DEFAULT_SCALES.BGYR: 0>
- BROWN_YELLOW = <DEFAULT_SCALES.BROWN_YELLOW: 11>
- BWR = <DEFAULT_SCALES.BWR: 2>
- DIP_BRYW = <DEFAULT_SCALES.DIP_BRYW: 8>
- DIP_DIR_REPEAT = <DEFAULT_SCALES.DIP_DIR_REPEAT: 9>
- GREY = <DEFAULT_SCALES.GREY: 1>
- HIGH_CONTRAST = <DEFAULT_SCALES.HIGH_CONTRAST: 14>
- HSV_360_DEG = <DEFAULT_SCALES.HSV_360_DEG: 6>
- RW = <DEFAULT_SCALES.RW: 4>
- RY = <DEFAULT_SCALES.RY: 3>
- TOPO_LANDSERF = <DEFAULT_SCALES.TOPO_LANDSERF: 13>
- VERTEX_QUALITY = <DEFAULT_SCALES.VERTEX_QUALITY: 7>
- VIRIDIS = <DEFAULT_SCALES.VIRIDIS: 10>
- YELLOW_BROWN = <DEFAULT_SCALES.YELLOW_BROWN: 12>
- property name
- property value
- static GetDefaultScale(scale: pycc.ccColorScalesManager.DEFAULT_SCALES = <DEFAULT_SCALES.BGYR: 0>) pycc.ccColorScale.Shared
- static GetDefaultScaleUUID(scale: int) QString
- static GetUniqueInstance() pycc.ccColorScalesManager
- static ReleaseUniqueInstance() None
- addScale(self: pycc.ccColorScalesManager, scale: pycc.ccColorScale.Shared) None
- fromPersistentSettings(self: pycc.ccColorScalesManager) None
- getDefaultScale(self: pycc.ccColorScalesManager, scale: pycc.ccColorScalesManager.DEFAULT_SCALES) pycc.ccColorScale.Shared
- getScale(self: pycc.ccColorScalesManager, UUID: QString) pycc.ccColorScale.Shared
- removeScale(*args, **kwargs)
Overloaded function.
removeScale(self: pycc.ccColorScalesManager, UUID: QString) -> None
removeScale(self: pycc.ccColorScalesManager, UUID: QString) -> None
- toPersistentSettings(self: pycc.ccColorScalesManager) None
- ABS_NORM_GREY = <DEFAULT_SCALES.ABS_NORM_GREY: 5>
- BGYR = <DEFAULT_SCALES.BGYR: 0>
- BROWN_YELLOW = <DEFAULT_SCALES.BROWN_YELLOW: 11>
- BWR = <DEFAULT_SCALES.BWR: 2>
- DIP_BRYW = <DEFAULT_SCALES.DIP_BRYW: 8>
- DIP_DIR_REPEAT = <DEFAULT_SCALES.DIP_DIR_REPEAT: 9>
- GREY = <DEFAULT_SCALES.GREY: 1>
- HIGH_CONTRAST = <DEFAULT_SCALES.HIGH_CONTRAST: 14>
- HSV_360_DEG = <DEFAULT_SCALES.HSV_360_DEG: 6>
- RW = <DEFAULT_SCALES.RW: 4>
- RY = <DEFAULT_SCALES.RY: 3>
- TOPO_LANDSERF = <DEFAULT_SCALES.TOPO_LANDSERF: 13>
- VERTEX_QUALITY = <DEFAULT_SCALES.VERTEX_QUALITY: 7>
- VIRIDIS = <DEFAULT_SCALES.VIRIDIS: 10>
- YELLOW_BROWN = <DEFAULT_SCALES.YELLOW_BROWN: 12>
ccGlobalShiftManager
- class pycc.ccGlobalShiftManager
Bases:
pybind11_object
- class Mode
Bases:
pybind11_object
Members:
NO_DIALOG
NO_DIALOG_AUTO_SHIFT
DIALOG_IF_NECESSARY
ALWAYS_DISPLAY_DIALOG
- ALWAYS_DISPLAY_DIALOG = <Mode.ALWAYS_DISPLAY_DIALOG: 3>
- DIALOG_IF_NECESSARY = <Mode.DIALOG_IF_NECESSARY: 2>
- NO_DIALOG = <Mode.NO_DIALOG: 0>
- NO_DIALOG_AUTO_SHIFT = <Mode.NO_DIALOG_AUTO_SHIFT: 1>
- property name
- property value
- ALWAYS_DISPLAY_DIALOG = <Mode.ALWAYS_DISPLAY_DIALOG: 3>
- DIALOG_IF_NECESSARY = <Mode.DIALOG_IF_NECESSARY: 2>
- NO_DIALOG = <Mode.NO_DIALOG: 0>
- NO_DIALOG_AUTO_SHIFT = <Mode.NO_DIALOG_AUTO_SHIFT: 1>
ccLog
- class pycc.ccLog
Bases:
pybind11_object
Class to log messages in CloudCompare’s console.
Use one of the static method to log a message
- class MessageLevelFlags
Bases:
pybind11_object
Members:
LOG_VERBOSE
LOG_STANDARD
LOG_IMPORTANT
LOG_WARNING
LOG_ERROR
- LOG_ERROR = <MessageLevelFlags.LOG_ERROR: 4>
- LOG_IMPORTANT = <MessageLevelFlags.LOG_IMPORTANT: 2>
- LOG_STANDARD = <MessageLevelFlags.LOG_STANDARD: 1>
- LOG_VERBOSE = <MessageLevelFlags.LOG_VERBOSE: 0>
- LOG_WARNING = <MessageLevelFlags.LOG_WARNING: 3>
- property name
- property value
- static Error(message: QString) bool
Logs an error message
This will also display a dialog
- Parameters:
message (str) – The message to log
Example
>>> import pycc >>> pycc.ccLog.Error("Oops something even worse happenned") False
- static LogMessage(message: QString, level: int) None
Logs a message with the given level.
- Parameters:
message (str) – The message to log
level (pycc.ccLog.MessageLevelFlags) – The severity level of the message
Example
>>> import pycc >>> pycc.ccLog.LogMessage("Hello, world", pycc.ccLog.MessageLevelFlags.LOG_STANDARD)
- static Print(message: QString) bool
Logs a message with standard severity level.
- Parameters:
message (str) – The message to log
Example
>>> import pycc >>> pycc.ccLog.Print("Hello, world") True
- static TheInstance() pycc.ccLog
- static Warning(message: QString) bool
Logs a warning message
- Parameters:
message (str) – The message to log
Example
>>> import pycc >>> pycc.ccLog.Warning("Oops something bad happenned") False
FileIOFilter
- class pycc.FileIOFilter
Bases:
pybind11_object
- class LoadParameters
Bases:
pybind11_object
- property alwaysDisplayLoadDialog
- property autoComputeNormals
- property coordinatesShift
- property coordinatesShiftEnabled
- property parentWidget
- property preserveShiftOnSave
- property sessionStart
- property shiftHandlingMode
- class SaveParameters
Bases:
pybind11_object
- property alwaysDisplaySaveDialog
- property parentWidget
- static LoadFromFile(arg0: QString, arg1: FileIOFilter::LoadParameters) pycc.ccHObject
- static SaveToFile(entities: pycc.ccHObject, filename: QString, parameters: FileIOFilter::SaveParameters, fileFileter: QString = '') None
cc2DViewportObject
- class pycc.cc2DViewportObject
Bases:
ccHObject
- getParameters(self: pycc.cc2DViewportObject) pycc.ccViewportParameters
- setParameters(self: pycc.cc2DViewportObject, params: pycc.ccViewportParameters) None
cc2DViewportLabel
- class pycc.cc2DViewportLabel
Bases:
cc2DViewportObject
- roi(self: pycc.cc2DViewportLabel) list
- setRoi(self: pycc.cc2DViewportLabel, arg0: Sequence) None
ccViewportParameters
- class pycc.ccViewportParameters
Bases:
pybind11_object
- computeDistanceToHalfWidthRation(self: pycc.ccViewportParameters) float
- computeDistanceToWidthRatio(self: pycc.ccViewportParameters) float
- computePixelSize(self: pycc.ccViewportParameters, arg0: int) float
- computeScaleMatrix(self: pycc.ccViewportParameters, arg0: Sequence) pycc.ccGLMatrixd
- computeViewMatrix(self: pycc.ccViewportParameters) pycc.ccGLMatrixd
- computeWidthAtFocalDist(self: pycc.ccViewportParameters) float
- getCameraCenter(self: pycc.ccViewportParameters) cccorelib.CCVector3d
- getFocalDistance(self: pycc.ccViewportParameters) float
- getPivotPoint(self: pycc.ccViewportParameters) cccorelib.CCVector3d
- getRotationCenter(self: pycc.ccViewportParameters) cccorelib.CCVector3d
- getUpDir(self: pycc.ccViewportParameters) cccorelib.CCVector3d
- getViewDir(self: pycc.ccViewportParameters) cccorelib.CCVector3d
- setCameraCenter(self: pycc.ccViewportParameters, C: cccorelib.CCVector3d, autoUpdateFocal: bool) None
- setFocalDistance(self: pycc.ccViewportParameters, distance: float) None
- setPivotPoint(self: pycc.ccViewportParameters, P: cccorelib.CCVector3d, autoUpdateFocal: bool) None
- property cameraAspectRatio
- property defaultLineWidth
- property defaultPointSize
- property farClippingDepth
- property fov_deg
- property nearClippingDepth
- property objectCenteredView
- property perspectiveView
- property viewMat
- property zFar
- property zNear
- property zNearCoef
ccGLCameraParameters
- class pycc.ccGLCameraParameters
Bases:
pybind11_object
- project(*args, **kwargs)
Overloaded function.
project(self: pycc.ccGLCameraParameters, input3D: cccorelib.CCVector3d, output2D: cccorelib.CCVector3d, checkInFrustrum: bool = False) -> bool
project(self: pycc.ccGLCameraParameters, input3D: cccorelib.CCVector3, output2D: cccorelib.CCVector3d, checkInFrustrum: bool = False) -> bool
- unproject(*args, **kwargs)
Overloaded function.
unproject(self: pycc.ccGLCameraParameters, input3D: cccorelib.CCVector3d, output2D: cccorelib.CCVector3d) -> bool
unproject(self: pycc.ccGLCameraParameters, input3D: cccorelib.CCVector3, output2D: cccorelib.CCVector3d) -> bool
- property fov_deg
- property modelViewMat
- property perspective
- property pixelSize
- property projectionMat
ccGenericGLDisplay
- class pycc.ccGenericGLDisplay
Bases:
pybind11_object
- class TextAlign
Bases:
pybind11_object
Members:
ALIGN_HLEFT
ALIGN_HMIDDLE
ALIGN_HRIGHT
ALIGN_VTOP
ALIGN_VMIDDLE
ALIGN_VBOTTOM
ALIGN_DEFAULT
- ALIGN_DEFAULT = <TextAlign.ALIGN_DEFAULT: 9>
- ALIGN_HLEFT = <TextAlign.ALIGN_HLEFT: 1>
- ALIGN_HMIDDLE = <TextAlign.ALIGN_HMIDDLE: 2>
- ALIGN_HRIGHT = <TextAlign.ALIGN_HRIGHT: 4>
- ALIGN_VBOTTOM = <TextAlign.ALIGN_VBOTTOM: 32>
- ALIGN_VMIDDLE = <TextAlign.ALIGN_VMIDDLE: 16>
- ALIGN_VTOP = <TextAlign.ALIGN_VTOP: 8>
- property name
- property value
- deprecate3DLayer(self: pycc.ccGenericGLDisplay) None
- display3DLabel(self: pycc.ccGenericGLDisplay, str: QString, pos3D: cccorelib.CCVector3, color: pycc.Rgba = None, font: pycc.QFont = <QFont(Sans Serif, 9, -1, 5, 50, 0, 0, 0, 0, 0)>) None
- displayText(self: pycc.ccGenericGLDisplay, text: QString, x: int, y: int, align: int = <TextAlign.ALIGN_DEFAULT: 9>, bkgAlpha: float = 0.0, color: pycc.Rgba = None, font: pycc.QFont = None) None
- getGLCameraParameters(self: pycc.ccGenericGLDisplay, params: pycc.ccGLCameraParameters) None
- getLabelDisplayFont(self: pycc.ccGenericGLDisplay) pycc.QFont
- getScreenSize(self: pycc.ccGenericGLDisplay) pycc.QSize
- getTextDisplayFont(self: pycc.ccGenericGLDisplay) pycc.QFont
- getViewportParameters(self: pycc.ccGenericGLDisplay) pycc.ccViewportParameters
- invalidateViewport(self: pycc.ccGenericGLDisplay) None
- redraw(self: pycc.ccGenericGLDisplay, only2D: bool = False, resetLOD: bool = True) None
- refresh(self: pycc.ccGenericGLDisplay, only2D: bool = False) None
- setupProjectiveViewport(self: pycc.ccGenericGLDisplay, cameraMatrix: pycc.ccGLMatrixd, fov_deg: float = 0.0, viewerBasedPerspective: bool = True, bubbleViewMode: bool = False) None
- toBeRefreshed(self: pycc.ccGenericGLDisplay) None
- toCenteredGLCoordinates(self: pycc.ccGenericGLDisplay, x: int, y: int) pycc.QPointF
ccGLMatrix
See also
C++: ccGLMatrix
- class pycc.ccGLMatrix
Bases:
pybind11_object
- static FromToRotation(from: cccorelib.CCVector3, to: cccorelib.CCVector3) pycc.ccGLMatrix
- static FromViewDirAndUpDir(forward: cccorelib.CCVector3, up: cccorelib.CCVector3) pycc.ccGLMatrix
- static Interpolate(coef: float, glMat1: ccGLMatrixTpl<float>, glMat2: ccGLMatrixTpl<float>) ccGLMatrixTpl<float>
- asArray(self: pycc.ccGLMatrix) numpy.ndarray[numpy.float32]
- clearTranslation(self: pycc.ccGLMatrix) None
- getColumnAsVec3D(self: pycc.ccGLMatrix, index: int) cccorelib.CCVector3
- getTranslationAsVec3D(self: pycc.ccGLMatrix) cccorelib.CCVector3
- initFromParameters(*args, **kwargs)
Overloaded function.
initFromParameters(self: pycc.ccGLMatrix, alpha_rad: float, axis3D: cccorelib.CCVector3, t3D: cccorelib.CCVector3) -> None
initFromParameters(self: pycc.ccGLMatrix, phi_rad: float, theta_rad: float, psi_rad: float, t3D: cccorelib.CCVector3) -> None
- inverse(self: pycc.ccGLMatrix) ccGLMatrixTpl<float>
- invert(self: pycc.ccGLMatrix) None
- scaleColumn(self: pycc.ccGLMatrix, rowIndex: int, coef: float) None
- scaleRotation(self: pycc.ccGLMatrix, coef: float) None
- scaleRow(self: pycc.ccGLMatrix, rowIndex: int, coef: float) None
- setColumn(self: pycc.ccGLMatrix, index: int, v: cccorelib.CCVector3) None
- setTranslation(self: pycc.ccGLMatrix, Tr: cccorelib.CCVector3) None
- shiftRotationCenter(self: pycc.ccGLMatrix, vec: cccorelib.CCVector3) None
- toIdentity(self: pycc.ccGLMatrix) None
- toZero(self: pycc.ccGLMatrix) None
- transpose(self: pycc.ccGLMatrix) None
- xRotation(self: pycc.ccGLMatrix) ccGLMatrixTpl<float>
- yRotation(self: pycc.ccGLMatrix) ccGLMatrixTpl<float>
- zRotation(self: pycc.ccGLMatrix) ccGLMatrixTpl<float>
ccGLMatrixd
See also
C++: ccGLMatrixd
- class pycc.ccGLMatrixd
Bases:
pybind11_object
- static FromToRotation(from: cccorelib.CCVector3d, to: cccorelib.CCVector3d) pycc.ccGLMatrixd
- static FromViewDirAndUpDir(forward: cccorelib.CCVector3d, up: cccorelib.CCVector3d) pycc.ccGLMatrixd
- static Interpolate(coef: float, glMat1: ccGLMatrixTpl<double>, glMat2: ccGLMatrixTpl<double>) ccGLMatrixTpl<double>
- asArray(self: pycc.ccGLMatrixd) numpy.ndarray[numpy.float64]
- clearTranslation(self: pycc.ccGLMatrixd) None
- getColumnAsVec3D(self: pycc.ccGLMatrixd, index: int) cccorelib.CCVector3d
- getTranslationAsVec3D(self: pycc.ccGLMatrixd) cccorelib.CCVector3d
- initFromParameters(*args, **kwargs)
Overloaded function.
initFromParameters(self: pycc.ccGLMatrixd, alpha_rad: float, axis3D: cccorelib.CCVector3d, t3D: cccorelib.CCVector3d) -> None
initFromParameters(self: pycc.ccGLMatrixd, phi_rad: float, theta_rad: float, psi_rad: float, t3D: cccorelib.CCVector3d) -> None
- inverse(self: pycc.ccGLMatrixd) ccGLMatrixTpl<double>
- invert(self: pycc.ccGLMatrixd) None
- scaleColumn(self: pycc.ccGLMatrixd, rowIndex: int, coef: float) None
- scaleRotation(self: pycc.ccGLMatrixd, coef: float) None
- scaleRow(self: pycc.ccGLMatrixd, rowIndex: int, coef: float) None
- setColumn(self: pycc.ccGLMatrixd, index: int, v: cccorelib.CCVector3d) None
- setTranslation(self: pycc.ccGLMatrixd, Tr: cccorelib.CCVector3d) None
- shiftRotationCenter(self: pycc.ccGLMatrixd, vec: cccorelib.CCVector3d) None
- toIdentity(self: pycc.ccGLMatrixd) None
- toZero(self: pycc.ccGLMatrixd) None
- transpose(self: pycc.ccGLMatrixd) None
- xRotation(self: pycc.ccGLMatrixd) ccGLMatrixTpl<double>
- yRotation(self: pycc.ccGLMatrixd) ccGLMatrixTpl<double>
- zRotation(self: pycc.ccGLMatrixd) ccGLMatrixTpl<double>
ccIndexedTransformation
See also
C++: ccIndexedTransformation
- class pycc.ccIndexedTransformation
Bases:
ccGLMatrix
- static Interpolate(interpIndex: float, trans1: pycc.ccIndexedTransformation, trans2: pycc.ccIndexedTransformation) pycc.ccIndexedTransformation
- getIndex(self: pycc.ccIndexedTransformation) float
- inverse(self: pycc.ccIndexedTransformation) pycc.ccIndexedTransformation
- setIndex(self: pycc.ccIndexedTransformation, index: float) None
- transposed(self: pycc.ccIndexedTransformation) pycc.ccIndexedTransformation
WaveformDescriptor
See also
C++: WaveformDescriptor
ccWaveform
See also
C++: ccWaveform
- class pycc.ccWaveform
Bases:
pybind11_object
- static ToASCII(filename: QString, values: list[float], samplingRate_ps: int) bool
- applyRigidTransformation(self: pycc.ccWaveform, trans: pycc.ccGLMatrix) None
- beamDir(self: pycc.ccWaveform) cccorelib.CCVector3
- byteCount(self: pycc.ccWaveform) int
- dataOffset(self: pycc.ccWaveform) int
- decodeSamples(self: pycc.ccWaveform, descriptor: pycc.WaveformDescriptor, dataStorage: int) list[float]
- descriptorID(self: pycc.ccWaveform) int
- echoTime_ps(self: pycc.ccWaveform) float
- getRange(self: pycc.ccWaveform, descriptor: pycc.WaveformDescriptor, dataStorage: int) tuple
- getRawSample(self: pycc.ccWaveform, i: int, descriptor: pycc.WaveformDescriptor, dataStorage: int) int
- getSample(self: pycc.ccWaveform, i: int, descriptor: pycc.WaveformDescriptor, dataStorage: int) int
- getSamplePos(self: pycc.ccWaveform, i: float, getSamplePos: cccorelib.CCVector3, descriptor: pycc.WaveformDescriptor) cccorelib.CCVector3
- returnIndex(self: pycc.ccWaveform) int
- setBeamDir(self: pycc.ccWaveform, dir: cccorelib.CCVector3) None
- setDataDescription(self: pycc.ccWaveform, dataOffset: int, byteCount: int) None
- setDataOffset(self: pycc.ccWaveform, offset: int) None
- setDescriptorID(self: pycc.ccWaveform, id: int) None
- setEchoTime_ps(self: pycc.ccWaveform, time_ps: float) None
- setReturnIndex(self: pycc.ccWaveform, index: int) None
- toASCII(self: pycc.ccWaveform, filename: QString, descriptor: pycc.WaveformDescriptor, dataStorage: int) bool
ccWaveformProxy
See also
C++: ccWaveformProxy
- class pycc.ccWaveformProxy
Bases:
pybind11_object
- beamDir(self: pycc.ccWaveformProxy) cccorelib.CCVector3
- byteCount(self: pycc.ccWaveformProxy) int
- data(self: pycc.ccWaveformProxy) int
- decodeSamples(self: pycc.ccWaveformProxy) list[float]
- descriptor(self: pycc.ccWaveformProxy) pycc.WaveformDescriptor
- descriptorID(self: pycc.ccWaveformProxy) int
- echoTime_ps(self: pycc.ccWaveformProxy) float
- getRange(self: pycc.ccWaveformProxy) tuple
- getRawSample(self: pycc.ccWaveformProxy, i: int) int
- getSample(self: pycc.ccWaveformProxy, i: int) int
- getSamplePos(self: pycc.ccWaveformProxy, i: float, getSamplePos: cccorelib.CCVector3) cccorelib.CCVector3
- isValid(self: pycc.ccWaveformProxy) bool
- toASCII(self: pycc.ccWaveformProxy, filename: QString) bool
- waveform(self: pycc.ccWaveformProxy) pycc.ccWaveform
ccRasterGrid
See also
C++: ccRasterGrid
- class pycc.ccRasterGrid
Bases:
pybind11_object
- class EmptyCellFillOption
Bases:
pybind11_object
Members:
LEAVE_EMPTY
FILL_MINIMUM_HEIGHT
FILL_MAXIMUM_HEIGHT
FILL_CUSTOM_HEIGHT
FILL_AVERAGE_HEIGHT
INTERPOLATE_DELAUNAY
KRIGING
- FILL_AVERAGE_HEIGHT = <EmptyCellFillOption.FILL_AVERAGE_HEIGHT: 4>
- FILL_CUSTOM_HEIGHT = <EmptyCellFillOption.FILL_CUSTOM_HEIGHT: 3>
- FILL_MAXIMUM_HEIGHT = <EmptyCellFillOption.FILL_MAXIMUM_HEIGHT: 2>
- FILL_MINIMUM_HEIGHT = <EmptyCellFillOption.FILL_MINIMUM_HEIGHT: 1>
- INTERPOLATE_DELAUNAY = <EmptyCellFillOption.INTERPOLATE_DELAUNAY: 5>
- KRIGING = <EmptyCellFillOption.KRIGING: 6>
- LEAVE_EMPTY = <EmptyCellFillOption.LEAVE_EMPTY: 0>
- property name
- property value
- class ExportableFields
Bases:
pybind11_object
Members:
PER_CELL_VALUE
PER_CELL_COUNT
PER_CELL_MIN_VALUE
PER_CELL_MAX_VALUE
PER_CELL_AVG_VALUE
PER_CELL_VALUE_STD_DEV
PER_CELL_VALUE_RANGE
PER_CELL_MEDIAN_VALUE
PER_CELL_PERCENTILE_VALUE
PER_CELL_UNIQUE_COUNT_VALUE
PER_CELL_INVALID
- PER_CELL_AVG_VALUE = <ExportableFields.PER_CELL_AVG_VALUE: 4>
- PER_CELL_COUNT = <ExportableFields.PER_CELL_COUNT: 1>
- PER_CELL_INVALID = <ExportableFields.PER_CELL_INVALID: 10>
- PER_CELL_MAX_VALUE = <ExportableFields.PER_CELL_MAX_VALUE: 3>
- PER_CELL_MEDIAN_VALUE = <ExportableFields.PER_CELL_MEDIAN_VALUE: 7>
- PER_CELL_MIN_VALUE = <ExportableFields.PER_CELL_MIN_VALUE: 2>
- PER_CELL_PERCENTILE_VALUE = <ExportableFields.PER_CELL_PERCENTILE_VALUE: 8>
- PER_CELL_UNIQUE_COUNT_VALUE = <ExportableFields.PER_CELL_UNIQUE_COUNT_VALUE: 9>
- PER_CELL_VALUE = <ExportableFields.PER_CELL_VALUE: 0>
- PER_CELL_VALUE_RANGE = <ExportableFields.PER_CELL_VALUE_RANGE: 6>
- PER_CELL_VALUE_STD_DEV = <ExportableFields.PER_CELL_VALUE_STD_DEV: 5>
- property name
- property value
- class ProjectionType
Bases:
pybind11_object
Members:
PROJ_MINIMUM_VALUE
PROJ_AVERAGE_VALUE
PROJ_MAXIMUM_VALUE
PROJ_MEDIAN_VALUE
PROJ_INVERSE_VAR_VALUE
INVALID_PROJECTION_TYPE
- INVALID_PROJECTION_TYPE = <ProjectionType.INVALID_PROJECTION_TYPE: 255>
- PROJ_AVERAGE_VALUE = <ProjectionType.PROJ_AVERAGE_VALUE: 1>
- PROJ_INVERSE_VAR_VALUE = <ProjectionType.PROJ_INVERSE_VAR_VALUE: 4>
- PROJ_MAXIMUM_VALUE = <ProjectionType.PROJ_MAXIMUM_VALUE: 2>
- PROJ_MEDIAN_VALUE = <ProjectionType.PROJ_MEDIAN_VALUE: 3>
- PROJ_MINIMUM_VALUE = <ProjectionType.PROJ_MINIMUM_VALUE: 0>
- property name
- property value
- static ComputeGridSize(Z: int, box: pycc.ccBBox, gridStep: float, width: int, height: int) bool
- static GetDefaultFieldName(field: pycc.ccRasterGrid.ExportableFields) QString
- computeCellCenter(self: pycc.ccRasterGrid, i: int, j: int, X: int, Y: int) cccorelib.CCVector2d
- computeCellPos(self: pycc.ccRasterGrid, P: cccorelib.CCVector3, X: int, Y: int) cccorelib.CCVector2i
- convertToCloud(self: pycc.ccRasterGrid, exportHeightStats: bool, exportSFStat: bool, exportedStatistics: list[pycc.ccRasterGrid.ExportableFields], projectSFs: bool, projectColors: bool, resampleInputCloudXY: bool, resampleInputCloudZ: bool, inputCloud: ccGenericPointCloud, Z: int, box: pycc.ccBBox, percentileValue: float, exportToOriginalCS: bool, appendGridSizeToSFNames: bool, progressDialog: ccProgressDialog = None) ccPointCloud
- fillEmptyCells(self: pycc.ccRasterGrid, projectionDimension: pycc.ccRasterGrid.EmptyCellFillOption, customCellHeight: float = 0) None
- fillWith(self: pycc.ccRasterGrid, cloud: ccGenericPointCloud, projectionDimension: int, projectionType: pycc.ccRasterGrid.ProjectionType, doInterpolateEmptyCells: ccRasterGrid::InterpolationType, maxEdgeLength: capsule, sfInterpolation: pycc.ccRasterGrid.ProjectionType = <ProjectionType.INVALID_PROJECTION_TYPE: 255>, progressDialog: ccProgressDialog = None, zStdDevSfIndex: int = -1) bool
- init(self: int, w: pycc.ccBBox, h: float, gridStep: int, minCorner: int) bool
- interpolateEmptyCells(self: pycc.ccRasterGrid, maxSquareEdgeLength: float) bool
- isValid(self: pycc.ccRasterGrid) bool
- reset(self: pycc.ccRasterGrid) None
- setValid(self: pycc.ccRasterGrid, state: bool) None
- updateCellStats(self: pycc.ccRasterGrid) None
- updateNonEmptyCellCount(self: pycc.ccRasterGrid) int
- FILL_AVERAGE_HEIGHT = <EmptyCellFillOption.FILL_AVERAGE_HEIGHT: 4>
- FILL_CUSTOM_HEIGHT = <EmptyCellFillOption.FILL_CUSTOM_HEIGHT: 3>
- FILL_MAXIMUM_HEIGHT = <EmptyCellFillOption.FILL_MAXIMUM_HEIGHT: 2>
- FILL_MINIMUM_HEIGHT = <EmptyCellFillOption.FILL_MINIMUM_HEIGHT: 1>
- INTERPOLATE_DELAUNAY = <EmptyCellFillOption.INTERPOLATE_DELAUNAY: 5>
- INVALID_PROJECTION_TYPE = <ProjectionType.INVALID_PROJECTION_TYPE: 255>
- KRIGING = <EmptyCellFillOption.KRIGING: 6>
- LEAVE_EMPTY = <EmptyCellFillOption.LEAVE_EMPTY: 0>
- PER_CELL_AVG_VALUE = <ExportableFields.PER_CELL_AVG_VALUE: 4>
- PER_CELL_COUNT = <ExportableFields.PER_CELL_COUNT: 1>
- PER_CELL_INVALID = <ExportableFields.PER_CELL_INVALID: 10>
- PER_CELL_MAX_VALUE = <ExportableFields.PER_CELL_MAX_VALUE: 3>
- PER_CELL_MEDIAN_VALUE = <ExportableFields.PER_CELL_MEDIAN_VALUE: 7>
- PER_CELL_MIN_VALUE = <ExportableFields.PER_CELL_MIN_VALUE: 2>
- PER_CELL_PERCENTILE_VALUE = <ExportableFields.PER_CELL_PERCENTILE_VALUE: 8>
- PER_CELL_UNIQUE_COUNT_VALUE = <ExportableFields.PER_CELL_UNIQUE_COUNT_VALUE: 9>
- PER_CELL_VALUE = <ExportableFields.PER_CELL_VALUE: 0>
- PER_CELL_VALUE_RANGE = <ExportableFields.PER_CELL_VALUE_RANGE: 6>
- PER_CELL_VALUE_STD_DEV = <ExportableFields.PER_CELL_VALUE_STD_DEV: 5>
- PROJ_AVERAGE_VALUE = <ProjectionType.PROJ_AVERAGE_VALUE: 1>
- PROJ_INVERSE_VAR_VALUE = <ProjectionType.PROJ_INVERSE_VAR_VALUE: 4>
- PROJ_MAXIMUM_VALUE = <ProjectionType.PROJ_MAXIMUM_VALUE: 2>
- PROJ_MEDIAN_VALUE = <ProjectionType.PROJ_MEDIAN_VALUE: 3>
- PROJ_MINIMUM_VALUE = <ProjectionType.PROJ_MINIMUM_VALUE: 0>
- property gridStep
- property hasColors
- property height
- property maxHeight
- property meanHeight
- property minCorner
- property minHeight
- property nonEmptyCellCount
- property valid
- property validCellCount
- property width
ccNormalVectors
See also
C++: ccNormalVectors
- class pycc.ccNormalVectors
Bases:
pybind11_object
- class Orientation
Bases:
pybind11_object
Members:
PLUS_X
MINUS_X
PLUS_Y
MINUS_Y
PLUS_Z
PLUS_BARYCENTER
MINUS_BARYCENTER
PLUS_ORIGIN
MINUS_ORIGIN
PREVIOUS
PLUS_SENSOR_ORIGIN
MINUS_SENSOR_ORIGIN
UNDEFINED
- MINUS_BARYCENTER = <Orientation.MINUS_BARYCENTER: 7>
- MINUS_ORIGIN = <Orientation.MINUS_ORIGIN: 9>
- MINUS_SENSOR_ORIGIN = <Orientation.MINUS_SENSOR_ORIGIN: 12>
- MINUS_X = <Orientation.MINUS_X: 1>
- MINUS_Y = <Orientation.MINUS_Y: 3>
- PLUS_BARYCENTER = <Orientation.PLUS_BARYCENTER: 6>
- PLUS_ORIGIN = <Orientation.PLUS_ORIGIN: 8>
- PLUS_SENSOR_ORIGIN = <Orientation.PLUS_SENSOR_ORIGIN: 11>
- PLUS_X = <Orientation.PLUS_X: 0>
- PLUS_Y = <Orientation.PLUS_Y: 2>
- PLUS_Z = <Orientation.PLUS_Z: 5>
- PREVIOUS = <Orientation.PREVIOUS: 10>
- UNDEFINED = <Orientation.UNDEFINED: 255>
- property name
- property value
- static GetNormIndex(N: cccorelib.CCVector3) int
- static GetNormal(normIndex: int) cccorelib.CCVector3
- static GetNumberOfVectors() int
- static GetUniqueInstance() pycc.ccNormalVectors
- static ReleaseUniqueInstance() None
- getNormal(self: pycc.ccNormalVectors, normIndex: int) cccorelib.CCVector3