This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.Qt import * | |
class TestDialog(QDialog): | |
def __init__(self, is_poisson=False, | |
flag=Qt.WindowSystemMenuHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint): | |
super(TestDialog, self).__init__(None, flag) | |
self.setGeometry(0, 0, 400, 300) | |
grid_layout = QGridLayout() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from time import sleep | |
import traceback | |
from PyQt5.QtCore import * | |
from PyQt5.QtWidgets import ( | |
QApplication, | |
QLabel, | |
QMainWindow, | |
QPushButton, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Concating numpy arrray and form pandas data frame. | |
import pandas as pd | |
points = np.asarray(self.pcd_data.points, dtype=np.float32) | |
pd_points = pd.DataFrame(data=points, columns=["X", "Y", "Z"]) | |
colors = np.asarray(self.pcd_data.colors, dtype=np.float32) | |
pd_colors = pd.DataFrame(data=colors, columns=["R", "G", "B"]) | |
normals = np.asarray(self.pcd_data.normals, dtype=np.float32) | |
pd_normals = pd.DataFrame(data=normals, columns=["NX", "NY", "NZ"]) | |
test_dataframe = pd.concat([pd_points, pd_colors, pd_normals], axis=1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scrollToBottom(timedelay=0) { | |
var scrollId; | |
var height = 0; | |
var minScrollHeight = 100; | |
scrollId = setInterval(function () { | |
if (height <= document.body.scrollHeight) { | |
window.scrollBy(0, minScrollHeight); | |
} | |
else { | |
clearInterval(scrollId); |