boofcv.visualize.PointCloudViewer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boofcv-io Show documentation
Show all versions of boofcv-io Show documentation
BoofCV is an open source Java library for real-time computer vision and robotics applications.
/*
* Copyright (c) 2011-2018, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package boofcv.visualize;
import georegression.struct.point.Point3D_F64;
import georegression.struct.se.Se3_F64;
import org.ddogleg.struct.GrowQueue_F32;
import org.ddogleg.struct.GrowQueue_I32;
import javax.swing.*;
import java.util.List;
/**
* High level interface for displaying point clouds
*
* @author Peter Abeles
*/
public interface PointCloudViewer {
/**
* Render the XYZ axis on the screen
* @param show
*/
void setShowAxis( boolean show );
void setTranslationStep( double step );
/**
* Dot size when rendered. This is only valid if sprites are being used
* @param pixels apparent size of a point
*/
void setDotSize( int pixels );
/**
* Specifies the clipping distance. The default value will be infinity or some other very large value
* @param distance maximum distance an object away from the camera can be seen
*/
void setClipDistance( double distance );
/**
* If true then objects farther away will fade into the background color. Providing some sense of depth.
* this is by default off.
*
* @param active true to turn on
*/
void setFog( boolean active );
void setBackgroundColor( int rgb );
void addCloud( List cloudXyz , int colorsRgb[] );
void addCloud( List cloud );
void addCloud(GrowQueue_F32 cloudXYZ , GrowQueue_I32 colorRGB );
/**
* adds a single point to the point cloud. This method can be very slow compared to doing it in a batch
*/
void addPoint( double x , double y , double z , int rgb );
/**
* Removes all points from the point cloud
*/
void clearPoints();
/**
* Specifies the camera's FOV in radians
* @param radians FOV size
*/
void setCameraHFov(double radians );
/**
* Changes the camera location
* @param cameraToWorld transform from camera to world coordinates
*/
void setCameraToWorld(Se3_F64 cameraToWorld );
JComponent getComponent();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy