Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
granger35 committed Jan 25, 2021
2 parents 26e1740 + 8ca96a6 commit c3ab8b7
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 4 deletions.
2 changes: 1 addition & 1 deletion JenkinsFile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SolArModulePipeline {
moduleName="SolARModuleOpenGL"
dirName="SolARBuild"
makeTarget="install_deps"
makeTarget="install install_deps"
runTests=true
android=false
}
65 changes: 65 additions & 0 deletions interfaces/SolAR3DPointsViewerOpengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,71 @@ namespace OPENGL {
* Configuration parameters allow user to visualize the axis of the coordinate systems of the world, the center of the point cloud, and the camera.
* The color of points can be fixed, or can be the one assigned to each point.
* The scale of the points, camera and coordinate systems axis can be defined by the usr thanks to configuration parameters.
*
* @SolARComponentPropertiesBegin
* @SolARComponentProperty{ title,
* the title of the window on which the image will be displayed,
* @SolARComponentPropertyDescString{ "" }}
* @SolARComponentProperty{ width,
* the width of the window on which the image will be displayed (if <=0\, the width of the input image),
* @SolARComponentPropertyDescNum{ int, [0..MAX INT], 0 }}
* @SolARComponentProperty{ height,
* the height of the window on which the image will be displayed (if <=0\, the height of the input image),
* @SolARComponentPropertyDescNum{ int, [0..MAX INT], 0 }}
* @SolARComponentProperty{ backgroundColor,
* background color,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 255\, 255\, 255 } }}
* @SolARComponentProperty{ fixedPointsColor,
* if 0, the color of each point is used\, else the color defined in parameter by user is used,
* @SolARComponentPropertyDescNum{ uint, [0,1], 1 }}
* @SolARComponentProperty{ pointsColor,
* points color,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 0\, 255\, 0 } }}
* @SolARComponentProperty{ points2Color,
* points color for the second cloud,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 255\, 0\, 0 } }}
* @SolARComponentProperty{ cameraColor,
* camera color,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 0\, 0\, 255 } }}
* @SolARComponentProperty{ keyframeAsCamera,
* if not 0\, each keyframe pose is drawn as a camera\, else as a point,
* @SolARComponentPropertyDescNum{ uint, [0\,1], 0 }}
* @SolARComponentProperty{ framesColor,
* frame color,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 180\, 180\, 180 } }}
* @SolARComponentProperty{ keyframesColor,
* keyframe color,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 0\, 255\, 0 } }}
* @SolARComponentProperty{ keyframes2Color,
* keyframe color for the second vector of keyframe,
* @SolARComponentPropertyDescList{ 3, uint, [0..255], { 255\, 0\, 0 } }}
* @SolARComponentProperty{ drawCameraAxis,
* if not 0\, a gizmo showing the coordinate system of the camera is displayed,
* @SolARComponentPropertyDescNum{ uint, [0\,1], 1 }}
* @SolARComponentProperty{ drawSceneAxis,
* if not 0\, a gizmo showing the coordinate system axis of the scene reference is displayed,
* @SolARComponentPropertyDescNum{ uint, [0\,1], 1 }}
* @SolARComponentProperty{ drawWorldAxis,
* if not 0\, a gizmo showing the coordinate system axis of the world reference is displayed,
* @SolARComponentPropertyDescNum{ uint, [0\,1], 1 }}
* @SolARComponentProperty{ axisScale,
* define the scale of the gizmo displaying the coordinate system center on the scene,
* @SolARComponentPropertyDescNum{ float, [0..MAX FLOAT], 1.f }}
* @SolARComponentProperty{ pointSize,
* size of points,
* @SolARComponentPropertyDescNum{ float, [0..MAX FLOAT], 2.f }}
* @SolARComponentProperty{ cameraScale,
* camera scale,
* @SolARComponentPropertyDescNum{ float, [0..MAX FLOAT], 1.f }}
* @SolARComponentProperty{ zoomSensitivity,
* zoom sensitivity,
* @SolARComponentPropertyDescNum{ float, [0..MAX FLOAT], 10.f }}
* @SolARComponentProperty{ exitKey,
* the key code to press to close the window. If negative\, no key is defined to close the window,
* @SolARComponentPropertyDescNum{ int, [-1..MAX INT], 27 }}
*
* @SolARComponentPropertiesEnd
*
*/

class SOLAROPENGL_EXPORT_API SolAR3DPointsViewerOpengl : public org::bcom::xpcf::ConfigurableBase,
Expand Down
2 changes: 1 addition & 1 deletion packageignoreinstall.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SolARFramework xpcf boost gprc
SolARFramework xpcf boost grpc
3 changes: 2 additions & 1 deletion src/SolAR3DPointsViewerOpengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "SolAR3DPointsViewerOpengl.h"
#include "core/Log.h"
#include "xpcf/core/helpers.h"
#include <map>
#include <math.h>
#include <random>
Expand Down Expand Up @@ -422,7 +423,7 @@ void SolAR3DPointsViewerOpengl::OnResizeWindow(int _w, int _h)
m_resolutionY = _h;
}

void SolAR3DPointsViewerOpengl::OnKeyBoard(unsigned char key, [[maybe_unused]] int x, [[maybe_unused]] int y)
void SolAR3DPointsViewerOpengl::OnKeyBoard(unsigned char key, ATTRIBUTE(maybe_unused) int x, ATTRIBUTE(maybe_unused) int y)
{
if (key == m_exitKey)
m_exitKeyPressed = true;
Expand Down
3 changes: 2 additions & 1 deletion src/SolARSinkPoseTextureBufferOpengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "SolARSinkPoseTextureBufferOpengl.h"
#include "core/Log.h"
#include "xpcf/core/helpers.h"
#include <iostream>
namespace xpcf = org::bcom::xpcf;

Expand Down Expand Up @@ -80,7 +81,7 @@ FrameworkReturnCode SinkPoseTextureBuffer::setTextureBuffer(void* textureBufferH
return FrameworkReturnCode::_SUCCESS;
}

void SinkPoseTextureBuffer::updateFrameDataOGL([[maybe_unused]] int enventID)
void SinkPoseTextureBuffer::updateFrameDataOGL(ATTRIBUTE(maybe_unused) int enventID)
{
m_mutex.lock();
if (m_newImage)
Expand Down

0 comments on commit c3ab8b7

Please sign in to comment.